summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Incoming.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Incoming.cpp')
-rw-r--r--cpp/src/Ice/Incoming.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/Incoming.cpp b/cpp/src/Ice/Incoming.cpp
index fafdb3cce83..691c43a91d2 100644
--- a/cpp/src/Ice/Incoming.cpp
+++ b/cpp/src/Ice/Incoming.cpp
@@ -557,16 +557,16 @@ IceInternal::Incoming::killAsync()
}
void
-IceInternal::Incoming::setActive(IncomingAsync& cb)
+IceInternal::Incoming::setActive(IncomingAsyncPtr cb)
{
assert(_cb == 0);
//
// acquires a ref-count
//
#ifdef ICE_CPP11_MAPPING
- _cb = cb.shared_from_this();
+ _cb = move(cb);
#else
- _cb = &cb;
+ _cb = cb;
#endif
}