summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/StringUtil.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-10-12 00:13:14 +0000
committerMark Spruiell <mes@zeroc.com>2002-10-12 00:13:14 +0000
commit74373e5f65a2d4a46729d8fef1016ecf8da9c2e7 (patch)
treee30f199fba4cfe16c962321245f1c1b36e0c7c82 /cpp/src/Ice/StringUtil.cpp
parentremoving join() from shutdown hook (diff)
downloadice-74373e5f65a2d4a46729d8fef1016ecf8da9c2e7.tar.bz2
ice-74373e5f65a2d4a46729d8fef1016ecf8da9c2e7.tar.xz
ice-74373e5f65a2d4a46729d8fef1016ecf8da9c2e7.zip
bug fix
Diffstat (limited to 'cpp/src/Ice/StringUtil.cpp')
-rw-r--r--cpp/src/Ice/StringUtil.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/cpp/src/Ice/StringUtil.cpp b/cpp/src/Ice/StringUtil.cpp
index eedaa47b60e..3e3058e3d30 100644
--- a/cpp/src/Ice/StringUtil.cpp
+++ b/cpp/src/Ice/StringUtil.cpp
@@ -130,8 +130,7 @@ IceInternal::encodeString(const string& s, const string& special)
//
// Decodes a UTF8 string. Decoding starts at the given start position
-// (inclusive) and stops at the given end position (exclusive). If the end
-// position is zero, then the remainder of the string is used. Upon success,
+// (inclusive) and stops at the given end position (exclusive). Upon success,
// the result parameter holds the decoded string and true is returned.
// A return value of false indicates an error was detected in the encoding.
//
@@ -139,10 +138,6 @@ bool
IceInternal::decodeString(const string& s, string::size_type start, string::size_type end, string& result)
{
const string::size_type len = s.size();
- if(end == 0)
- {
- end = len;
- }
assert(start >= 0);
assert(end <= len);
assert(start <= end);