diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-06-03 14:11:48 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-06-03 14:11:48 -0400 |
commit | 48b141f8f6a8603f6b13a85bde002f6b480832f7 (patch) | |
tree | 41cf4ae281ad96e13216ea208a6579aa442844d3 /cpp/test/Ice/stringConverter/Server.cpp | |
parent | Fixed 3.7a2 version in msbuild props files (diff) | |
download | ice-48b141f8f6a8603f6b13a85bde002f6b480832f7.tar.bz2 ice-48b141f8f6a8603f6b13a85bde002f6b480832f7.tar.xz ice-48b141f8f6a8603f6b13a85bde002f6b480832f7.zip |
Refactored string converters and use codecvt_utf8[_utf16] when
available instead of ConvertUTF
Diffstat (limited to 'cpp/test/Ice/stringConverter/Server.cpp')
-rw-r--r-- | cpp/test/Ice/stringConverter/Server.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cpp/test/Ice/stringConverter/Server.cpp b/cpp/test/Ice/stringConverter/Server.cpp index da9dae3f8a5..ce592e19ba9 100644 --- a/cpp/test/Ice/stringConverter/Server.cpp +++ b/cpp/test/Ice/stringConverter/Server.cpp @@ -24,13 +24,6 @@ public: virtual wstring widen(ICE_IN(string) msg, const Ice::Current&) { - const Ice::Byte* cmsg = reinterpret_cast<const Ice::Byte*>(msg.c_str()); - - if(!IceUtil::isLegalUTF8Sequence(cmsg, cmsg + msg.size())) - { - throw Test::BadEncodingException(); - } - return IceUtil::stringToWstring(msg, IceUtil::getProcessStringConverter(), IceUtil::getProcessWstringConverter()); } |