summaryrefslogtreecommitdiff
path: root/cpp/src/slice2freeze/Main.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2005-02-23 19:21:43 +0000
committerMarc Laukien <marc@zeroc.com>2005-02-23 19:21:43 +0000
commit98a6af97e16a364f1b493e472fa0a80bd812cb41 (patch)
tree2c951cf2087fef0d368114cb86ad1e8c8e05423d /cpp/src/slice2freeze/Main.cpp
parentreplaced some of the perl in place editing with some python code to get (diff)
downloadice-98a6af97e16a364f1b493e472fa0a80bd812cb41.tar.bz2
ice-98a6af97e16a364f1b493e472fa0a80bd812cb41.tar.xz
ice-98a6af97e16a364f1b493e472fa0a80bd812cb41.zip
Buffer::Container
Diffstat (limited to 'cpp/src/slice2freeze/Main.cpp')
-rw-r--r--cpp/src/slice2freeze/Main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp
index 14947845fa7..46f94c52479 100644
--- a/cpp/src/slice2freeze/Main.cpp
+++ b/cpp/src/slice2freeze/Main.cpp
@@ -169,7 +169,7 @@ writeCodecC(const TypePtr& type, const string& name, const string& freezeType, b
{
C << nl << "stream.endWriteEncaps();";
}
- C << nl << "bytes.swap(stream.b);";
+ C << nl << "stream.b.copyToVector(bytes);";
C << eb;
C << sp << nl << "void" << nl << name << "::read(" << typeToString(type) << "& v, "
@@ -181,7 +181,7 @@ writeCodecC(const TypePtr& type, const string& name, const string& freezeType, b
{
C << nl << "stream.sliceObjects(false);";
}
- C << nl << "stream.b = bytes;";
+ C << nl << "stream.b.copyFromVector(bytes);";
C << nl << "stream.i = stream.b.begin();";
if(encaps)
{
@@ -468,7 +468,7 @@ writeDictWithIndicesC(const string& name, const string& absolute, const Dict& di
{
C << nl << "__stream.writePendingObjects();";
}
- C << nl << "__bytes.swap(__stream.b);";
+ C << nl << "__stream.b.copyToVector(__bytes);";
}
C << eb;
}
@@ -850,7 +850,7 @@ writeIndexC(const TypePtr& type, const TypePtr& memberType, const string& member
{
C << nl << "__stream.writePendingObjects();";
}
- C << nl << "__bytes.swap(__stream.b);";
+ C << nl << "__stream.b.copyToVector(__bytes);";
C << eb;
}