diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-09-28 10:40:14 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-09-28 10:40:14 +0200 |
commit | 8527be5894d0e0ba90db306b8ab124c04144ab44 (patch) | |
tree | 5edbe2c2104764f9b3ba8721e573b32fe32f9baf /cpp/src/Ice/ObserverHelper.cpp | |
parent | minor fix to build IceGridGUI in OsX (diff) | |
download | ice-8527be5894d0e0ba90db306b8ab124c04144ab44.tar.bz2 ice-8527be5894d0e0ba90db306b8ab124c04144ab44.tar.xz ice-8527be5894d0e0ba90db306b8ab124c04144ab44.zip |
Java & C# port
Diffstat (limited to 'cpp/src/Ice/ObserverHelper.cpp')
-rw-r--r-- | cpp/src/Ice/ObserverHelper.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/cpp/src/Ice/ObserverHelper.cpp b/cpp/src/Ice/ObserverHelper.cpp index 83adf075f53..10253ae8560 100644 --- a/cpp/src/Ice/ObserverHelper.cpp +++ b/cpp/src/Ice/ObserverHelper.cpp @@ -16,6 +16,13 @@ using namespace std; using namespace Ice; using namespace Ice::Instrumentation; +namespace +{ + +Ice::Context emptyCtx; + +} + IceInternal::InvocationObserver::InvocationObserver(IceProxy::Ice::Object* proxy, const string& op, const Context* ctx) { const CommunicatorObserverPtr& obsv = proxy->__reference()->getInstance()->initializationData().observer; @@ -26,11 +33,11 @@ IceInternal::InvocationObserver::InvocationObserver(IceProxy::Ice::Object* proxy if(ctx) { - attach(obsv->getInvocationObserverWithContext(proxy, op, *ctx)); + attach(obsv->getInvocationObserver(proxy, op, *ctx)); } else { - attach(obsv->getInvocationObserver(proxy, op)); + attach(obsv->getInvocationObserver(proxy, op, emptyCtx)); } } @@ -42,7 +49,7 @@ IceInternal::InvocationObserver::InvocationObserver(IceInternal::Instance* insta return; } - attach(obsv->getInvocationObserver(0, op)); + attach(obsv->getInvocationObserver(0, op, emptyCtx)); } void @@ -56,11 +63,11 @@ IceInternal::InvocationObserver::attach(IceProxy::Ice::Object* proxy, const stri if(ctx) { - attach(obsv->getInvocationObserverWithContext(proxy, op, *ctx)); + attach(obsv->getInvocationObserver(proxy, op, *ctx)); } else { - attach(obsv->getInvocationObserver(proxy, op)); + attach(obsv->getInvocationObserver(proxy, op, emptyCtx)); } } @@ -73,5 +80,5 @@ IceInternal::InvocationObserver::attach(IceInternal::Instance* instance, const s return; } - attach(obsv->getInvocationObserver(0, op)); + attach(obsv->getInvocationObserver(0, op, emptyCtx)); } |