diff options
Diffstat (limited to 'cpp/src/slice2freeze/Main.cpp')
-rw-r--r-- | cpp/src/slice2freeze/Main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index 85d33d5edf3..db303bd6e91 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -113,7 +113,7 @@ writeCodecC(const TypePtr& type, const string& name, const string& freezeType, O if(binary) { C << nl << "IceInternal::InstancePtr instance = IceInternal::getInstance(communicator);"; - C << nl << "IceInternal::BasicStream stream(instance);"; + C << nl << "IceInternal::BasicStream stream(instance.get());"; writeMarshalUnmarshalCode(C, type, "v", true, "stream", false); C << nl << "bytes = stream.b;"; } @@ -135,7 +135,7 @@ writeCodecC(const TypePtr& type, const string& name, const string& freezeType, O if(binary) { C << nl << "IceInternal::InstancePtr instance = IceInternal::getInstance(communicator);"; - C << nl << "IceInternal::BasicStream stream(instance);"; + C << nl << "IceInternal::BasicStream stream(instance.get());"; C << nl << "stream.b = bytes;"; C << nl << "stream.i = stream.b.begin();"; writeMarshalUnmarshalCode(C, type, "v", false, "stream", false); |