summaryrefslogtreecommitdiff
path: root/cpp/src/IceBox/ServiceManagerI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceBox/ServiceManagerI.cpp')
-rw-r--r--cpp/src/IceBox/ServiceManagerI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/IceBox/ServiceManagerI.cpp b/cpp/src/IceBox/ServiceManagerI.cpp
index 6643db94912..36d34ee94dd 100644
--- a/cpp/src/IceBox/ServiceManagerI.cpp
+++ b/cpp/src/IceBox/ServiceManagerI.cpp
@@ -75,9 +75,9 @@ IceBox::ServiceManagerI::ServiceManagerI(CommunicatorPtr communicator, int& argc
_communicator(communicator),
_adminEnabled(false),
_pendingStatusChanges(false),
- _traceServiceObserver(0),
- _observerCompletedCB(newCallback(this, &ServiceManagerI::observerCompleted))
+ _traceServiceObserver(0)
{
+ const_cast<CallbackPtr&>(_observerCompletedCB) = newCallback(this, &ServiceManagerI::observerCompleted);
_logger = _communicator->getLogger();
PropertiesPtr props = _communicator->getProperties();