diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-06-02 17:34:46 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-06-02 17:34:46 +0200 |
commit | 04cf06ae86da5da21651dec0f1c6202e36e39f35 (patch) | |
tree | c132cc06f264daa1b76f5ed02afbdad74895997d /cpp/test/Ice/interceptor/Client.cpp | |
parent | Fix bogus print statement (diff) | |
download | ice-04cf06ae86da5da21651dec0f1c6202e36e39f35.tar.bz2 ice-04cf06ae86da5da21651dec0f1c6202e36e39f35.tar.xz ice-04cf06ae86da5da21651dec0f1c6202e36e39f35.zip |
Fixed ICE-6557 - non virtual destructor warnings
Diffstat (limited to 'cpp/test/Ice/interceptor/Client.cpp')
-rw-r--r-- | cpp/test/Ice/interceptor/Client.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/test/Ice/interceptor/Client.cpp b/cpp/test/Ice/interceptor/Client.cpp index 5f25a07f199..9db35669373 100644 --- a/cpp/test/Ice/interceptor/Client.cpp +++ b/cpp/test/Ice/interceptor/Client.cpp @@ -35,7 +35,7 @@ class App { public: - ~App() + virtual ~App() { if(_communicator) { @@ -83,11 +83,11 @@ class Client : public App public: virtual int run(int, char*[]); - + private: int run(const Test::MyObjectPrx&, const InterceptorIPtr&); - int runAmd(const Test::MyObjectPrx&, const AMDInterceptorIPtr&); + int runAmd(const Test::MyObjectPrx&, const AMDInterceptorIPtr&); }; #ifndef _WIN32 @@ -144,17 +144,17 @@ Client::run(int, char*[]) #endif // - // Create OA and servants - // + // Create OA and servants + // Ice::ObjectAdapterPtr oa = communicator()->createObjectAdapterWithEndpoints("MyOA", "tcp -h localhost"); - + Ice::ObjectPtr servant = new MyObjectI; InterceptorIPtr interceptor = new InterceptorI(servant); AMDInterceptorIPtr amdInterceptor = new AMDInterceptorI(servant); - + Test::MyObjectPrx prx = Test::MyObjectPrx::uncheckedCast(oa->addWithUUID(interceptor)); Test::MyObjectPrx prxForAMD = Test::MyObjectPrx::uncheckedCast(oa->addWithUUID(amdInterceptor)); - + cout << "Collocation optimization on" << endl; int rs = run(prx, interceptor); if(rs != 0) @@ -170,7 +170,7 @@ Client::run(int, char*[]) } oa->activate(); // Only necessary for non-collocation optimized tests - + cout << "Collocation optimization off" << endl; interceptor->clear(); prx = Test::MyObjectPrx::uncheckedCast(prx->ice_collocationOptimized(false)); @@ -179,7 +179,7 @@ Client::run(int, char*[]) { return rs; } - + cout << "Now with AMD" << endl; amdInterceptor->clear(); prxForAMD = Test::MyObjectPrx::uncheckedCast(prxForAMD->ice_collocationOptimized(false)); @@ -226,7 +226,7 @@ Client::run(const Test::MyObjectPrx& prx, const InterceptorIPtr& interceptor) test(interceptor->getLastStatus() == Ice::DispatchUserException); cout << "ok" << endl; cout << "testing ONE... " << flush; - + interceptor->clear(); try { |