summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-28 16:46:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-03-28 16:46:25 +0100
commit9617e79b46d961b1ed2d11606e480e8c3bf81326 (patch)
treedadc9ac7fe61cd122d30964225ba2562f216ce86
parent963ec93fd46a3773e7a133d8cde628c731b2339f (diff)
catch exceptions by const reference
-rw-r--r--dbaccess/source/ui/dlg/UserAdminDlg.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/UserAdminDlg.cxx b/dbaccess/source/ui/dlg/UserAdminDlg.cxx
index 089f6dfac..edad27790 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();
}