summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Util.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-09-23 13:15:49 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-09-23 13:15:49 +0000
commita10e73c0a708bf34dbf92fcc20ffae3ebc0907d0 (patch)
treee2f25ba15dbc38fd6a7f3c46416be40916a3f960 /cpp/src/IcePatch2/Util.cpp
parentAdded simple demo. (diff)
downloadice-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.cpp12
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