diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-28 16:18:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-28 16:18:12 +0100 |
commit | 67d1c9384fb2bc090405351bab0bff99782c412c (patch) | |
tree | b634615f47ed00cdb81c6176722de663ef2a203c /dbaccess/source/ui/querydesign | |
parent | 742925d6e57206e469a51995a211980630969d09 (diff) |
catch exceptions by const reference
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r-- | dbaccess/source/ui/querydesign/querycontroller.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx index 7324b0ab597f..054c854e846a 100644 --- a/dbaccess/source/ui/querydesign/querycontroller.cxx +++ b/dbaccess/source/ui/querydesign/querycontroller.cxx @@ -671,7 +671,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >& } } } - catch(const SQLException& e) + catch(const SQLException&) { aError = ::cppu::getCaughtException(); } @@ -725,7 +725,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >& { xCloseFrame->close( sal_True ); } - catch( const Exception& ) + catch(const Exception&) { OSL_FAIL( "OQueryController::Execute(SID_DB_QUERY_PREVIEW): *nobody* is expected to veto closing the preview frame!" ); } @@ -733,7 +733,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >& else Execute(ID_BROWSER_QUERY_EXECUTE,Sequence< PropertyValue >()); } - catch(Exception&) + catch(const Exception&) { } break; @@ -1050,7 +1050,7 @@ void OQueryController::impl_initialize() setModified(sal_False); } - catch(SQLException& e) + catch(const SQLException& e) { DBG_UNHANDLED_EXCEPTION(); // we caught an exception so we switch to text only mode @@ -1101,7 +1101,7 @@ void OQueryController::setQueryComposer() m_xComposer = xFactory->createQueryComposer(); getContainer()->setStatement(m_sStatement); } - catch (Exception&) + catch(const Exception&) { m_xComposer = NULL; } @@ -1560,13 +1560,13 @@ bool OQueryController::doSaveAsDoc(sal_Bool _bSaveAs) bSuccess = true; } - catch( const SQLException& ) + catch(const SQLException&) { if ( !bNew ) m_sName = sOriginalName; aInfo = SQLExceptionInfo( ::cppu::getCaughtException() ); } - catch(Exception&) + catch(const Exception&) { if ( !bNew ) m_sName = sOriginalName; @@ -1611,7 +1611,7 @@ bool OQueryController::doSaveAsDoc(sal_Bool _bSaveAs) m_xComposer->setQuery(sTranslatedStmt); sTranslatedStmt = m_xComposer->getComposedQuery(); } - catch(SQLException& e) + catch(const SQLException& e) { ::dbtools::SQLExceptionInfo aInfo(e); showError(aInfo); |