diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-13 12:04:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-04-13 12:04:28 +0100 |
commit | f9cbcef0ee0a7c3912ece4f1125d609f7539ba31 (patch) | |
tree | 92e8034b7d8f06358e98cb1397c4f923cd8a766b | |
parent | 98e0b10b5b16c3888ec8babeab26c35c9526246d (diff) |
catch by const reference
-rw-r--r-- | dbaccess/source/ui/misc/UITools.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx index f924c8529..c5a47ae85 100644 --- a/dbaccess/source/ui/misc/UITools.cxx +++ b/dbaccess/source/ui/misc/UITools.cxx @@ -227,10 +227,10 @@ SQLExceptionInfo createConnection( const Reference< ::com::sun::star::beans::XPr if (xComponent.is() && _rEvtLst.is()) xComponent->addEventListener(_rEvtLst); } - catch(SQLContext& e) { aInfo = SQLExceptionInfo(e); } - catch(SQLWarning& e) { aInfo = SQLExceptionInfo(e); } - catch(SQLException& e) { aInfo = SQLExceptionInfo(e); } - catch(constException&) { OSL_FAIL("SbaTableQueryBrowser::OnExpandEntry: could not connect - unknown exception!"); } + catch(const SQLContext& e) { aInfo = SQLExceptionInfo(e); } + catch(const SQLWarning& e) { aInfo = SQLExceptionInfo(e); } + catch(const SQLException& e) { aInfo = SQLExceptionInfo(e); } + catch(const Exception&) { OSL_FAIL("SbaTableQueryBrowser::OnExpandEntry: could not connect - unknown exception!"); } return aInfo; } |