summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-31 14:57:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-03-31 14:57:09 +0100
commita367e9f1862a191c544f71e02c1d2082434bb821 (patch)
tree3f4e40b3a27c871c37512a8056b0ba6d80c46115 /dbaccess
parentd2773713d614457b79b3c512b7ca27746ea516eb (diff)
catch exceptions by const reference
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/misc/linkeddocuments.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/dbaccess/source/ui/misc/linkeddocuments.cxx b/dbaccess/source/ui/misc/linkeddocuments.cxx
index 2de49e7522d8..d1c5ccd14fe1 100644
--- a/dbaccess/source/ui/misc/linkeddocuments.cxx
+++ b/dbaccess/source/ui/misc/linkeddocuments.cxx
@@ -189,9 +189,8 @@ namespace dbaui
xRet = xComponentLoader->loadComponentFromURL( _rLinkName, ::rtl::OUString(), 0, aArguments.getPropertyValues() );
}
- catch(Exception& e)
+ catch(const Exception&)
{
- (void)e;
throw;
}
@@ -229,7 +228,7 @@ namespace dbaui
xWizard->trigger( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "start" ) ) );
::comphelper::disposeComponent( xWizard );
}
- catch(const Exception& e)
+ catch(const Exception&)
{
DBG_UNHANDLED_EXCEPTION();
}
@@ -334,7 +333,7 @@ namespace dbaui
xNewDocument.set( xContent->execute( aCommand, xContent->createCommandIdentifier(), NULL ), UNO_QUERY );
}
}
- catch(const Exception& )
+ catch(const Exception&)
{
DBG_UNHANDLED_EXCEPTION();
}
@@ -362,7 +361,7 @@ namespace dbaui
}
return xRet;
}
- catch (com::sun::star::io::WrongFormatException &e)
+ catch(const com::sun::star::io::WrongFormatException &e)
{
com::sun::star::sdbc::SQLException aSQLException;
aSQLException.Message = e.Message;
@@ -378,7 +377,7 @@ namespace dbaui
sMessage.SearchAndReplaceAscii("$file$",_rLinkName);
aInfo.prepend(sMessage);
}
- catch(Exception& e)
+ catch(const Exception& e)
{
Any aAny = ::cppu::getCaughtException();
com::sun::star::sdbc::SQLException a;