diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2freeze/Main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index d4c2b9c8c8d..5779edba3c4 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -118,7 +118,7 @@ writeCodecC(const TypePtr& type, const string& name, const string& freezeType, O { C << nl << "stream.writePendingObjects();"; } - C << nl << "bytes = stream.b;"; + C << nl << "bytes.swap(stream.b);"; C << eb; |