summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r--cpp/src/Ice/Object.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp
index 0fd4c42c0a1..13786007e5b 100644
--- a/cpp/src/Ice/Object.cpp
+++ b/cpp/src/Ice/Object.cpp
@@ -459,12 +459,11 @@ Ice::BlobjectArrayAsync::__dispatch(Incoming& in, const Current& current)
void
Ice::ice_writeObject(const OutputStreamPtr& out, const ObjectPtr& p)
{
- out->writeObject(p);
+ out->write(p);
}
void
Ice::ice_readObject(const InputStreamPtr& in, ObjectPtr& p)
{
- Ice::ReadObjectCallbackPtr cb = new ReadObjectCallbackI(__patch__ObjectPtr, &p);
- in->readObject(cb);
+ in->read(p);
}