diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-01-25 09:21:15 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-01-25 09:21:15 +0000 |
commit | 6f17d7ba1745fc91bd864f436def76cf581133b1 (patch) | |
tree | 20d853f21b2f3ba31d66dbc4d3cfc60aa8134f4a /cpp/src | |
parent | implementing setDefaultContext (diff) | |
download | ice-6f17d7ba1745fc91bd864f436def76cf581133b1.tar.bz2 ice-6f17d7ba1745fc91bd864f436def76cf581133b1.tar.xz ice-6f17d7ba1745fc91bd864f436def76cf581133b1.zip |
Fix
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IcePack/Parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IcePack/Parser.cpp b/cpp/src/IcePack/Parser.cpp index f48e202d5f0..dcd710a43fc 100644 --- a/cpp/src/IcePack/Parser.cpp +++ b/cpp/src/IcePack/Parser.cpp @@ -115,9 +115,9 @@ ServerDescribe::visitServerStart(const ServerWrapper&, const ServerDescriptorPtr if(!s->jvmOptions.empty()) { _out << nl << "jvmOptions = '"; - for(Ice::StringSeq::const_iterator p = s->jvmOptions.begin(); p != s->jvmOptions.end(); ++p) + for(Ice::StringSeq::const_iterator p = s->jvmOptions.begin(); p != s->jvmOptions.end();) { - _out << *p << " "; + _out << *p << ((++p != s->jvmOptions.end()) ? " " : "'"); } } } @@ -141,9 +141,9 @@ ServerDescribe::visitServerStart(const ServerWrapper&, const ServerDescriptorPtr if(!server->options.empty()) { _out << nl << "options = '"; - for(Ice::StringSeq::const_iterator p = server->options.begin(); p != server->options.end(); ++p) + for(Ice::StringSeq::const_iterator p = server->options.begin(); p != server->options.end();) { - _out << *p << " "; + _out << *p << ((++p != server->options.end()) ? " " : "'"); } } if(!server->envs.empty()) |