diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-09-23 13:15:49 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-09-23 13:15:49 +0000 |
commit | a10e73c0a708bf34dbf92fcc20ffae3ebc0907d0 (patch) | |
tree | e2f25ba15dbc38fd6a7f3c46416be40916a3f960 /cpp/src/IcePatch2/Util.cpp | |
parent | Added simple demo. (diff) | |
download | ice-a10e73c0a708bf34dbf92fcc20ffae3ebc0907d0.tar.bz2 ice-a10e73c0a708bf34dbf92fcc20ffae3ebc0907d0.tar.xz ice-a10e73c0a708bf34dbf92fcc20ffae3ebc0907d0.zip |
Fixed couple of compiler warnings
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Util.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp index a4f6ef87998..d3e237eb250 100644 --- a/cpp/src/IcePatch2/Util.cpp +++ b/cpp/src/IcePatch2/Util.cpp @@ -309,10 +309,8 @@ IcePatch2::getSuffix(const string& pa) { return string(); } - else - { - return path.substr(dotPos + 1); - } + + return path.substr(dotPos + 1); } string @@ -327,10 +325,8 @@ IcePatch2::getWithoutSuffix(const string& pa) { return path; } - else - { - return path.substr(0, dotPos); - } + + return path.substr(0, dotPos); } bool |