[Libreoffice-commits] .: dbaccess/source

Caolán McNamara caolan at kemper.freedesktop.org
Mon Mar 28 08:09:04 PDT 2011


 dbaccess/source/core/dataaccess/documentcontainer.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f98a69d4832bf829a0a61b0170b92cd0b7423e69
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 28 16:08:55 2011 +0100

    catch exceptions by reference

diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx
index 51fc784..b3b7c1a 100644
--- a/dbaccess/source/core/dataaccess/documentcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx
@@ -566,11 +566,11 @@ Reference< XComponent > SAL_CALL ODocumentContainer::loadComponentFromURL( const
             xComp.set(xContent->execute(aCommand,xContent->createCommandIdentifier(),Reference< XCommandEnvironment >()),UNO_QUERY);
         }
     }
-    catch(NoSuchElementException)
+    catch(const NoSuchElementException&)
     {
         throw IllegalArgumentException();
     }
-    catch(WrappedTargetException &e)
+    catch(const WrappedTargetException&)
     {
         throw;
     }
@@ -678,7 +678,7 @@ void SAL_CALL ODocumentContainer::replaceByHierarchicalName( const ::rtl::OUStri
         if ( xUnoTunnel.is() )
             pContent = reinterpret_cast<OContentHelper*>(xUnoTunnel->getSomething(OContentHelper::getUnoTunnelImplementationId()));
     }
-    catch(Exception)
+    catch(const Exception&)
     {
     }
     return pContent;


More information about the Libreoffice-commits mailing list