diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-28 16:08:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-28 16:08:55 +0100 |
commit | f98a69d4832bf829a0a61b0170b92cd0b7423e69 (patch) | |
tree | ee0105ee3403e12bda0f8a67132bf5dd374c798e | |
parent | 02220efbe5d036432a8dd131baf7b445e1edbf0e (diff) |
catch exceptions by reference
-rw-r--r-- | dbaccess/source/core/dataaccess/documentcontainer.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx index 51fc784c2..b3b7c1ab0 100644 --- a/dbaccess/source/core/dataaccess/documentcontainer.cxx +++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx @@ -566,11 +566,11 @@ Reference< XComponent > SAL_CALL ODocumentContainer::loadComponentFromURL( const xComp.set(xContent->execute(aCommand,xContent->createCommandIdentifier(),Reference< XCommandEnvironment >()),UNO_QUERY); } } - catch(NoSuchElementException) + catch(const NoSuchElementException&) { throw IllegalArgumentException(); } - catch(WrappedTargetException &e) + catch(const WrappedTargetException&) { throw; } @@ -678,7 +678,7 @@ void SAL_CALL ODocumentContainer::replaceByHierarchicalName( const ::rtl::OUStri if ( xUnoTunnel.is() ) pContent = reinterpret_cast<OContentHelper*>(xUnoTunnel->getSomething(OContentHelper::getUnoTunnelImplementationId())); } - catch(Exception) + catch(const Exception&) { } return pContent; |