diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-15 15:14:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-16 09:04:08 +0100 |
commit | 2ef7e20436221f0adc8f8f1b95ac2a7ba734b2af (patch) | |
tree | ec7dc3e8d526d44d708e634b4d3af75e93ca46f6 /desktop | |
parent | 0a9fa3d840da1ba224397fddd6a09852d7121701 (diff) |
catch by const reference
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index 7654e0e254d6..59ac06621aaf 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -340,7 +340,7 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch else xDispatcher->dispatch( aURL, aArgs2 ); } - catch ( ::com::sun::star::uno::Exception& ) + catch (const ::com::sun::star::uno::Exception&) { OUString aMsg = OUString(RTL_CONSTASCII_USTRINGPARAM( "Desktop::OpenDefault() IllegalArgumentException while calling XNotifyingDispatch: ")); @@ -397,14 +397,14 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch { xDoc = Reference < XPrintable >( ::comphelper::SynchronousDispatch::dispatch( xDesktop, aName, aTarget, 0, aArgs ), UNO_QUERY ); } - catch ( ::com::sun::star::lang::IllegalArgumentException& iae) + catch (const ::com::sun::star::lang::IllegalArgumentException& iae) { OUString aMsg = OUString(RTL_CONSTASCII_USTRINGPARAM( "Dispatchwatcher IllegalArgumentException while calling loadComponentFromURL: ")) + iae.Message; OSL_FAIL( OUStringToOString(aMsg, RTL_TEXTENCODING_ASCII_US).getStr()); } - catch (com::sun::star::io::IOException& ioe) + catch (const com::sun::star::io::IOException& ioe) { OUString aMsg = OUString(RTL_CONSTASCII_USTRINGPARAM( "Dispatchwatcher IOException while calling loadComponentFromURL: ")) @@ -483,7 +483,7 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch { xStorable->storeToURL( aOutFile, conversionProperties ); } - catch ( Exception& e ) + catch (const Exception&) { fprintf( stderr, "Error: Please reverify input parameters...\n" ); } @@ -566,7 +566,7 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch xComp->dispose(); } } - catch ( com::sun::star::util::CloseVetoException& ) + catch (const com::sun::star::util::CloseVetoException&) { } |