summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p2pvr/lib/temporaryIceAdapterObject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/p2pvr/lib/temporaryIceAdapterObject.h b/p2pvr/lib/temporaryIceAdapterObject.h
index 411f7cf..d7fc77d 100644
--- a/p2pvr/lib/temporaryIceAdapterObject.h
+++ b/p2pvr/lib/temporaryIceAdapterObject.h
@@ -6,7 +6,7 @@
template <typename Object>
class TemporaryIceAdapterObject {
public:
- TemporaryIceAdapterObject(Ice::ObjectAdapterPtr a, Object * o) :
+ TemporaryIceAdapterObject(Ice::ObjectAdapterPtr a, IceUtil::Handle<Object> o) :
adapter(a),
object(o),
proxy(Object::ProxyType::checkedCast(adapter->addWithUUID(object)))
@@ -31,7 +31,7 @@ class TemporaryIceAdapterObject {
Object * Get() const
{
- return object;
+ return object.get();
}
typename Object::ProxyType operator->() const
@@ -54,7 +54,7 @@ class TemporaryIceAdapterObject {
private:
Ice::ObjectAdapterPtr adapter;
- Object * object;
+ IceUtil::Handle<Object> object;
typename Object::ProxyType proxy;
};