[Libreoffice-commits] .: dbaccess/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Jul 27 01:31:16 PDT 2011
dbaccess/source/core/dataaccess/databasecontext.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 17ad15b70a1c1362952655e4610e4c8e35a6a1bd
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jul 26 23:02:25 2011 +0100
catch by const reference
diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx b/dbaccess/source/core/dataaccess/databasecontext.cxx
index 1461525..f0ba9e6 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 );
More information about the Libreoffice-commits
mailing list