diff options
author | Jose <jose@zeroc.com> | 2016-07-26 15:21:05 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-07-26 15:21:05 +0200 |
commit | 796654ace64e13ad32f05b4de02eaed0c25c4690 (patch) | |
tree | f92abdc00503cda1c94eeea443fa78cfae3767be /cpp/src/Slice/PythonUtil.cpp | |
parent | Merge remote-tracking branch 'origin/3.6' (diff) | |
download | ice-796654ace64e13ad32f05b4de02eaed0c25c4690.tar.bz2 ice-796654ace64e13ad32f05b4de02eaed0c25c4690.tar.xz ice-796654ace64e13ad32f05b4de02eaed0c25c4690.zip |
Fix fail to build error
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r-- | cpp/src/Slice/PythonUtil.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index a900d9e8baf..054f087b044 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -211,22 +211,7 @@ u32CodePoint(unsigned int value) void writeU8Buffer(const vector<unsigned char>& u8buffer, ostringstream& out) { - vector<unsigned int> u32buffer; - IceUtilInternal::ConversionResult result = convertUTF8ToUTF32(u8buffer, u32buffer, IceUtil::lenientConversion); - switch(result) - { - case conversionOK: - break; - case sourceExhausted: - throw IceUtil::IllegalConversionException(__FILE__, __LINE__, "string source exhausted"); - case sourceIllegal: - throw IceUtil::IllegalConversionException(__FILE__, __LINE__, "string source illegal"); - default: - { - assert(0); - throw IceUtil::IllegalConversionException(__FILE__, __LINE__); - } - } + vector<unsigned int> u32buffer = toUTF32(u8buffer); for(vector<unsigned int>::const_iterator c = u32buffer.begin(); c != u32buffer.end(); ++c) { |