From 796654ace64e13ad32f05b4de02eaed0c25c4690 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 26 Jul 2016 15:21:05 +0200 Subject: Fix fail to build error --- cpp/src/Slice/PythonUtil.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'cpp/src/Slice/PythonUtil.cpp') 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& u8buffer, ostringstream& out) { - vector 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 u32buffer = toUTF32(u8buffer); for(vector::const_iterator c = u32buffer.begin(); c != u32buffer.end(); ++c) { -- cgit v1.2.3