diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-22 15:00:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-23 09:07:43 +0100 |
commit | 41333e6a172e8efb607b9ddb7b6a85476a9f9eae (patch) | |
tree | 3acbb3e0ac41e65aea07868b90499325fdf6cf46 /sfx2 | |
parent | c3e86dd587a3c60cb5829f4f8b318c00119ed331 (diff) |
catch by const reference
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index eb5f98905cbb..d676ad144a18 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -290,7 +290,7 @@ static ::rtl::OUString RetrieveLabelFromCommand( aLabel = aStr; } } - catch ( css::uno::Exception& ) + catch (const css::uno::Exception&) { } @@ -425,10 +425,13 @@ enum ETypeFamily return sType; } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } - catch(const css::uno::Exception&) - {} + catch (const css::uno::RuntimeException& exRun) + { + throw; + } + catch (const css::uno::Exception&) + { + } return ::rtl::OUString(); } @@ -528,7 +531,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq ) } } } - catch ( Exception& ) + catch (const Exception&) { } } @@ -635,11 +638,11 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq ) { aModule = xModuleManager->identify( xFrame ); } - catch ( css::uno::RuntimeException& ) + catch (const css::uno::RuntimeException&) { throw; } - catch ( css::uno::Exception& ) + catch (const css::uno::Exception&) { } @@ -723,7 +726,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq ) { xStorable->storeToURL( aFileURL, aArgs ); } - catch ( com::sun::star::io::IOException& ) + catch (const com::sun::star::io::IOException&) { rReq.Done(sal_False); return; @@ -741,7 +744,7 @@ void SfxViewShell::ExecMisc_Impl( SfxRequest &rReq ) xSystemShellExecute->execute( aFileURL, ::rtl::OUString(), SystemShellExecuteFlags::DEFAULTS ); } - catch ( uno::Exception& ) + catch (const uno::Exception&) { SolarMutexGuard aGuard; Window *pParent = SFX_APP()->GetTopWindow(); @@ -1883,7 +1886,7 @@ void SfxViewShell::CheckIPClient_Impl( SfxInPlaceClient *pIPClient, const Rectan { pIPClient->GetObject()->changeState( embed::EmbedStates::INPLACE_ACTIVE ); } - catch ( uno::Exception& ) + catch (const uno::Exception&) { } } @@ -2147,7 +2150,7 @@ sal_Bool SfxViewShell::TryContextMenuInterception( Menu& rIn, const ::rtl::OUStr continue; } } - catch( uno::RuntimeException& ) + catch (const uno::RuntimeException&) { aIt.remove(); } @@ -2196,7 +2199,7 @@ void SfxViewShell::CheckOwnerShip_Impl() xModel->close( sal_True ); bSuccess = sal_True; } - catch ( util::CloseVetoException& ) + catch (const util::CloseVetoException&) { } } @@ -2213,7 +2216,7 @@ void SfxViewShell::CheckOwnerShip_Impl() { xFrame->close( sal_True ); } - catch ( util::CloseVetoException& ) + catch (const util::CloseVetoException&) { } } @@ -2291,7 +2294,7 @@ void SfxViewShell::AddRemoveClipboardListener( const uno::Reference < datatransf } } } - catch( const uno::Exception& ) + catch (const uno::Exception&) { } } |