diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-28 16:46:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-28 16:46:25 +0100 |
commit | 9e3d3cd3b50f358dbb64e5df43833da4341812ad (patch) | |
tree | 60b9c7ec08271e40549d5c3e90af7d7e4fdc0d20 /dbaccess | |
parent | 4fde4288d40ff7601cbbce6572ed77e2ef0e8b39 (diff) |
catch exceptions by const reference
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/UserAdminDlg.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/UserAdminDlg.cxx b/dbaccess/source/ui/dlg/UserAdminDlg.cxx index 2ef473cef14d..553f5446ca86 100644 --- a/dbaccess/source/ui/dlg/UserAdminDlg.cxx +++ b/dbaccess/source/ui/dlg/UserAdminDlg.cxx @@ -96,11 +96,15 @@ DBG_NAME(OUserAdminDlg) OUserAdminDlg::~OUserAdminDlg() { if ( m_bOwnConnection ) + { try { ::comphelper::disposeComponent(m_xConnection); } - catch(Exception){} + catch(const Exception&) + { + } + } SetInputSet(NULL); DELETEZ(pExampleSet); @@ -119,12 +123,12 @@ DBG_NAME(OUserAdminDlg) throw SQLException(sError,NULL,::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S1000")) ,0,Any()); } } - catch(const SQLException& e) + catch(const SQLException&) { ::dbaui::showError( ::dbtools::SQLExceptionInfo( ::cppu::getCaughtException() ), GetParent(), getORB() ); return RET_CANCEL; } - catch( const Exception& ) + catch(const Exception&) { DBG_UNHANDLED_EXCEPTION(); } |