diff options
author | Joe George <joe@zeroc.com> | 2017-05-02 13:58:41 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2017-05-02 15:42:34 -0400 |
commit | cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9 (patch) | |
tree | 5dbc0bfc43e2c195ab7e7d819e1914611f943f1d /cpp/src/IcePatch2/Calc.cpp | |
parent | Removed trailing whitespace generated by slice2js (diff) | |
download | ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.bz2 ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.tar.xz ice-cd472ddf8bd8a9c2bcfc80e988e6db450ea7dbf9.zip |
Remove trailing whitespace
Diffstat (limited to 'cpp/src/IcePatch2/Calc.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Calc.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/IcePatch2/Calc.cpp b/cpp/src/IcePatch2/Calc.cpp index 073d4f7dc06..167d59d797e 100644 --- a/cpp/src/IcePatch2/Calc.cpp +++ b/cpp/src/IcePatch2/Calc.cpp @@ -62,7 +62,7 @@ struct IFileInfoPathLess: public binary_function<const LargeFileInfo&, const Lar { return true; } - else if(::tolower(static_cast<unsigned char>(lhs.path[i])) > + else if(::tolower(static_cast<unsigned char>(lhs.path[i])) > ::tolower(static_cast<unsigned char>(rhs.path[i]))) { return false; @@ -102,7 +102,7 @@ void usage(const string& appName) { consoleErr << "Usage: " << appName << " [options] DIR [FILES...]\n"; - consoleErr << + consoleErr << "Options:\n" "-h, --help Show this message.\n" "-v, --version Display the Ice version.\n" @@ -141,7 +141,7 @@ main(int argc, char* argv[]) opts.addOpt("Z", "no-compress"); opts.addOpt("V", "verbose"); opts.addOpt("i", "case-insensitive"); - + vector<string> args; try { @@ -199,7 +199,7 @@ main(int argc, char* argv[]) try { string absDataDir = dataDir; - + string cwd; if(IceUtilInternal::getcwd(cwd) != 0) { @@ -210,7 +210,7 @@ main(int argc, char* argv[]) { absDataDir = simplify(cwd + '/' + absDataDir); } - + for(StringSeq::iterator p = fileSeq.begin(); p != fileSeq.end(); ++p) { if(!IceUtilInternal::isAbsolutePath(*p)) @@ -232,12 +232,12 @@ main(int argc, char* argv[]) { throw "`" + *p + "' is not a path in `" + dataDir + "'"; } - + p->erase(0, absDataDirWithSlash.size()); } - + LargeFileInfoSeq infoSeq; - + if(fileSeq.empty()) { CalcCB calcCB; |