diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-01-05 15:33:38 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-01-05 15:33:38 +0000 |
commit | 4c303c67f7e204e1eaa68a88e9feb338ece8af46 (patch) | |
tree | 40994559027b90f3a066506b9b664d6ff1296a12 /cpp/src/slice2cppe/Main.cpp | |
parent | fix for bug 1415 (diff) | |
download | ice-4c303c67f7e204e1eaa68a88e9feb338ece8af46.tar.bz2 ice-4c303c67f7e204e1eaa68a88e9feb338ece8af46.tar.xz ice-4c303c67f7e204e1eaa68a88e9feb338ece8af46.zip |
Fixed bug 1653
Diffstat (limited to 'cpp/src/slice2cppe/Main.cpp')
-rw-r--r-- | cpp/src/slice2cppe/Main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cppe/Main.cpp b/cpp/src/slice2cppe/Main.cpp index 70d76cfd2fa..54f6fff32d6 100644 --- a/cpp/src/slice2cppe/Main.cpp +++ b/cpp/src/slice2cppe/Main.cpp @@ -97,19 +97,19 @@ main(int argc, char* argv[]) vector<string>::const_iterator i; for(i = optargs.begin(); i != optargs.end(); ++i) { - cppArgs += " -D\"" + *i + "\""; + cppArgs += " -D" + Preprocessor::addQuotes(*i); } optargs = opts.argVec("U"); for(i = optargs.begin(); i != optargs.end(); ++i) { - cppArgs += " -U\"" + *i + "\""; + cppArgs += " -U" + Preprocessor::addQuotes(*i); } vector<string> includePaths = opts.argVec("I"); for(i = includePaths.begin(); i != includePaths.end(); ++i) { - cppArgs += " -I\"" + *i + "\""; + cppArgs += " -I" + Preprocessor::addQuotes(*i); } bool preprocess = opts.isSet("E"); |