[Libreoffice-commits] .: shell/source

Julien Nabet serval2412 at kemper.freedesktop.org
Fri Sep 16 16:03:43 PDT 2011


 shell/source/cmdmail/cmdmailsuppl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b337edca1a4ad098810fd639d75dabc1d0ecff26
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Sep 17 01:03:18 2011 +0200

    Better management of exception

diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx
index 2bd36e9..ec623c0 100644
--- a/shell/source/cmdmail/cmdmailsuppl.cxx
+++ b/shell/source/cmdmail/cmdmailsuppl.cxx
@@ -214,12 +214,12 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
 
     }
 
-    catch( RuntimeException e )
+    catch(const RuntimeException &e )
     {
         m_xConfigurationProvider.clear();
         OSL_TRACE( "RuntimeException caught accessing configuration provider." );
         OSL_TRACE( "%s", OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() );
-        throw e;
+        throw;
     }
 
     // Append originator if set in the message


More information about the Libreoffice-commits mailing list