summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/BasicStream.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-05-03 12:04:56 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-05-03 12:04:56 +0000
commitcb72bcef4f05af2fe3d729871fc788a6ea41a4d7 (patch)
tree6e26fe9e40589ca413074df9954c37031be8b258 /cpp/src/Ice/BasicStream.cpp
parentMore string converter optimizations (diff)
downloadice-cb72bcef4f05af2fe3d729871fc788a6ea41a4d7.tar.bz2
ice-cb72bcef4f05af2fe3d729871fc788a6ea41a4d7.tar.xz
ice-cb72bcef4f05af2fe3d729871fc788a6ea41a4d7.zip
Some refactoring of string converter usage
Diffstat (limited to 'cpp/src/Ice/BasicStream.cpp')
-rw-r--r--cpp/src/Ice/BasicStream.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp
index 08cb2560e6b..ff5a2d17de8 100644
--- a/cpp/src/Ice/BasicStream.cpp
+++ b/cpp/src/Ice/BasicStream.cpp
@@ -1415,8 +1415,14 @@ IceInternal::BasicStream::read(vector<string>& v, bool convert)
}
void
-IceInternal::BasicStream::writeConverted(const wstring& v)
+IceInternal::BasicStream::write(const wstring& v)
{
+ if(v.size() == 0)
+ {
+ writeSize(0);
+ return;
+ }
+
//
// What is the size of the resulting UTF-8 encoded string?
// Impossible to tell, so we guess. If we don't guess correctly,