diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-07-25 17:47:36 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-07-25 17:47:36 +0200 |
commit | e548dd63ec00b52e8d0f280b7a823516b8f61470 (patch) | |
tree | d3960c6fb761b135a4a6ad6cb991c1fa6f4d67f5 /cpp/src/Ice/ThreadPool.cpp | |
parent | Improved IceGrid discovery, it now works with icegrid registry slaves and nodes (diff) | |
download | ice-e548dd63ec00b52e8d0f280b7a823516b8f61470.tar.bz2 ice-e548dd63ec00b52e8d0f280b7a823516b8f61470.tar.xz ice-e548dd63ec00b52e8d0f280b7a823516b8f61470.zip |
Fixed ICE-5595: Catch C++ exceptions by const reference
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 593191c3034..cecbd78d868 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -699,7 +699,7 @@ IceInternal::ThreadPool::run(const EventHandlerThreadPtr& thread) { current._handler->message(current); } - catch(ThreadPoolDestroyedException&) + catch(const ThreadPoolDestroyedException&) { return; } @@ -721,7 +721,7 @@ IceInternal::ThreadPool::run(const EventHandlerThreadPtr& thread) { _selector.select(handlers, _serverIdleTime); } - catch(SelectorTimeoutException&) + catch(const SelectorTimeoutException&) { Lock sync(*this); if(!_destroyed && _inUse == 0) @@ -954,7 +954,7 @@ IceInternal::ThreadPool::run(const EventHandlerThreadPtr& thread) assert(current._handler); current._handler->message(current); } - catch(ThreadPoolDestroyedException&) + catch(const ThreadPoolDestroyedException&) { return; } |