diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-26 23:02:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-26 23:02:25 +0100 |
commit | bc04067352c6bb09c113567c7c2acb8933a09130 (patch) | |
tree | fef209ea5c91e6905cc60ee8555e90e8152031ab /dbaccess | |
parent | Opps. bjorn's link to .gitattribute got commited by mistake (diff) | |
download | core-bc04067352c6bb09c113567c7c2acb8933a09130.tar.gz core-bc04067352c6bb09c113567c7c2acb8933a09130.zip |
catch by const reference
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/databasecontext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx b/dbaccess/source/core/dataaccess/databasecontext.cxx index 5069c338c43b..3ce9914ddb34 100644 --- a/dbaccess/source/core/dataaccess/databasecontext.cxx +++ b/dbaccess/source/core/dataaccess/databasecontext.cxx @@ -637,19 +637,19 @@ Any ODatabaseContext::getByName(const rtl::OUString& _rName) throw( NoSuchElemen xExistent = loadObjectFromURL( _rName, sURL ); return makeAny( xExistent ); } - catch (NoSuchElementException&) + catch (const NoSuchElementException&) { // let these exceptions through throw; } - catch (WrappedTargetException&) + catch (const WrappedTargetException&) { // let these exceptions through throw; } - catch (RuntimeException&) + catch (const RuntimeException&) { // let these exceptions through throw; } - catch (Exception& e) + catch (const Exception&) { // exceptions other than the speciafied ones -> wrap Any aError = ::cppu::getCaughtException(); throw WrappedTargetException(_rName, *this, aError ); |