diff options
author | Mark Spruiell <mes@zeroc.com> | 2003-03-19 19:29:29 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2003-03-19 19:29:29 +0000 |
commit | 2f6cb222de1d19c697f6c97e7da52a8f7a16bc22 (patch) | |
tree | 812f255c368507fc7d97fd562bf4fd75ec260650 /cpp/src/Ice/StringUtil.cpp | |
parent | reformat (diff) | |
download | ice-2f6cb222de1d19c697f6c97e7da52a8f7a16bc22.tar.bz2 ice-2f6cb222de1d19c697f6c97e7da52a8f7a16bc22.tar.xz ice-2f6cb222de1d19c697f6c97e7da52a8f7a16bc22.zip |
cast fixes
Diffstat (limited to 'cpp/src/Ice/StringUtil.cpp')
-rw-r--r-- | cpp/src/Ice/StringUtil.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/Ice/StringUtil.cpp b/cpp/src/Ice/StringUtil.cpp index 3d99273cb16..0f12ec742e8 100644 --- a/cpp/src/Ice/StringUtil.cpp +++ b/cpp/src/Ice/StringUtil.cpp @@ -82,8 +82,7 @@ encodeChar(string::value_type b, string& s, const string& special) } default: { - // TODO: ML: Don't use old C-style casts. - if(((signed char)b) <= 31 || b == 127) + if(static_cast<signed char>(b) <= 31 || b == 127) { s.push_back('\\'); string octal = toOctalString(b); @@ -224,8 +223,7 @@ IceInternal::decodeString(const string& s, string::size_type start, string::size } default: { - // TODO: ML: No old C-style casts. - if(((signed char)ch) <= 31 || ch == 127) + if(static_cast<signed char>(ch) <= 31 || ch == 127) { return false; // Malformed encoding. } |