diff options
author | Bernard Normier <bernard@zeroc.com> | 2018-11-01 17:14:06 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2018-11-01 17:14:06 -0400 |
commit | 3a763985c52246b1b804cdd7ee7bd49a82e76bd3 (patch) | |
tree | e35b1b0bdf6715ed784d0c86482355528bee81ee /cpp/src/IceBox/ServiceManagerI.cpp | |
parent | Visual Studio and msbuild updates (diff) | |
download | ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.bz2 ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.tar.xz ice-3a763985c52246b1b804cdd7ee7bd49a82e76bd3.zip |
Increase Visual Studio warning level to Level4
Fixes #223.
Diffstat (limited to 'cpp/src/IceBox/ServiceManagerI.cpp')
-rw-r--r-- | cpp/src/IceBox/ServiceManagerI.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/cpp/src/IceBox/ServiceManagerI.cpp b/cpp/src/IceBox/ServiceManagerI.cpp index 1bfdb899f5d..d8f5c3cdcc0 100644 --- a/cpp/src/IceBox/ServiceManagerI.cpp +++ b/cpp/src/IceBox/ServiceManagerI.cpp @@ -839,6 +839,10 @@ IceBox::ServiceManagerI::stopAll() // leak detector doesn't report potential leaks, and the communicator must be destroyed before // the library is released since the library will destroy its global state. // + +#ifdef ICE_CPP11_MAPPING + info.service = 0; +#else try { info.service = 0; @@ -854,7 +858,7 @@ IceBox::ServiceManagerI::stopAll() Warning out(_logger); out << "ServiceManager: unknown exception while stopping service " << info.name; } - +#endif if(info.communicator) { removeAdminFacets("IceBox.Service." + info.name + "."); @@ -884,15 +888,7 @@ IceBox::ServiceManagerI::stopAll() { removeAdminFacets("IceBox.SharedCommunicator."); - try - { - _sharedCommunicator->destroy(); - } - catch(const std::exception& ex) - { - Warning out(_logger); - out << "ServiceManager: exception while destroying shared communicator:\n" << ex; - } + _sharedCommunicator->destroy(); _sharedCommunicator = 0; } |