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/IceGrid/Database.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/IceGrid/Database.cpp')
-rw-r--r-- | cpp/src/IceGrid/Database.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/IceGrid/Database.cpp b/cpp/src/IceGrid/Database.cpp index 0cbad1e89cb..b409f4b0cd3 100644 --- a/cpp/src/IceGrid/Database.cpp +++ b/cpp/src/IceGrid/Database.cpp @@ -1246,7 +1246,7 @@ Database::getAdapterInfo(const string& id) Lock sync(*this); // Make sure this isn't call during an update. return _adapterCache.get(id)->getAdapterInfo(); } - catch(AdapterNotExistException&) + catch(const AdapterNotExistException&) { } @@ -1302,7 +1302,7 @@ Database::getFilteredAdapterInfo(const string& id, const Ice::ConnectionPtr& con } return infos; } - catch(AdapterNotExistException&) + catch(const AdapterNotExistException&) { } @@ -1346,7 +1346,7 @@ Database::getAdapterServer(const string& id) const return adapter->getServerId(); } } - catch(AdapterNotExistException&) + catch(const AdapterNotExistException&) { } return ""; @@ -1360,7 +1360,7 @@ Database::getAdapterApplication(const string& id) const Lock sync(*this); // Make sure this isn't call during an update. return _adapterCache.get(id)->getApplication(); } - catch(AdapterNotExistException&) + catch(const AdapterNotExistException&) { } return ""; @@ -1378,7 +1378,7 @@ Database::getAdapterNode(const string& id) const return adapter->getNodeName(); } } - catch(AdapterNotExistException&) + catch(const AdapterNotExistException&) { } return ""; @@ -1715,7 +1715,7 @@ Database::getObjectProxy(const Ice::Identity& id) // return _objectCache.get(id)->getProxy(); } - catch(ObjectNotRegisteredException&) + catch(const ObjectNotRegisteredException&) { } @@ -1810,7 +1810,7 @@ Database::getObjectInfo(const Ice::Identity& id) ObjectEntryPtr object = _objectCache.get(id); return object->getObjectInfo(); } - catch(ObjectNotRegisteredException&) + catch(const ObjectNotRegisteredException&) { } |