[Libreoffice-commits] .: dbaccess/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Mar 31 08:51:34 PDT 2011


 dbaccess/source/ui/misc/linkeddocuments.cxx |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

New commits:
commit 6cbb726d6717cf0bf1f7de83ad339923b9bdfa9e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Mar 31 14:57:09 2011 +0100

    catch exceptions by const reference

diff --git a/dbaccess/source/ui/misc/linkeddocuments.cxx b/dbaccess/source/ui/misc/linkeddocuments.cxx
index b454452..6268a24 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;


More information about the Libreoffice-commits mailing list