diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-01-08 15:36:59 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-01-08 15:36:59 +0000 |
commit | a16ef132ba1b383d3d2bf573c118a21c653d9229 (patch) | |
tree | eb773fbab75a8fa85e55f947b7afd89f9b8ef811 /cpp/src/IceGrid/Parser.cpp | |
parent | Fixed windows build error (diff) | |
download | ice-a16ef132ba1b383d3d2bf573c118a21c653d9229.tar.bz2 ice-a16ef132ba1b383d3d2bf573c118a21c653d9229.tar.xz ice-a16ef132ba1b383d3d2bf573c118a21c653d9229.zip |
Borland fixes
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index 6ac66177ee0..461cf7b8996 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -1341,8 +1341,16 @@ Parser::dumpFile(const string& reader, const list<string>& origArgs) int maxBytes = _communicator->getProperties()->getPropertyAsIntWithDefault("Ice.MessageSizeMax", 1024) * 1024; if(head || tail) { - istringstream is(head ? opts.optArg("head") : opts.optArg("tail")); - is >> lineCount; + if(head) + { + istringstream is(opts.optArg("head")); + is >> lineCount; + } + else + { + istringstream is(opts.optArg("tail")); + is >> lineCount; + } if(lineCount <= 0) { invalidCommand("invalid argument for -h | --head or -t | --tail option"); |