diff options
author | PKEuS <philipp.kloke@web.de> | 2012-02-05 11:53:47 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-02-05 14:29:54 +0100 |
commit | ba5a460bc15393cc64522f288b7b2b678d6fcc99 (patch) | |
tree | a4a322e415f301aa5d253f6578983d7ca5cbce72 /framework/source/helper/persistentwindowstate.cxx | |
parent | 32fa7e9208b2053d2ff7743b88b0c0edacb8a7e7 (diff) |
Fixed cppcheck messages about rethrowing copy of exception.
Diffstat (limited to 'framework/source/helper/persistentwindowstate.cxx')
-rw-r--r-- | framework/source/helper/persistentwindowstate.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/helper/persistentwindowstate.cxx b/framework/source/helper/persistentwindowstate.cxx index f2e9bcfc89ec..e7ea0650dd23 100644 --- a/framework/source/helper/persistentwindowstate.cxx +++ b/framework/source/helper/persistentwindowstate.cxx @@ -208,8 +208,8 @@ void SAL_CALL PersistentWindowState::disposing(const css::lang::EventObject&) { sModuleName = xModuleManager->identify(xFrame); } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + catch(const css::uno::RuntimeException&) + { throw; } catch(const css::uno::Exception&) { sModuleName = ::rtl::OUString(); } @@ -239,8 +239,8 @@ void SAL_CALL PersistentWindowState::disposing(const css::lang::EventObject&) sKey, ::comphelper::ConfigurationHelper::E_READONLY) >>= sWindowState; } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + catch(const css::uno::RuntimeException&) + { throw; } catch(const css::uno::Exception&) { sWindowState = ::rtl::OUString(); } @@ -270,8 +270,8 @@ void PersistentWindowState::implst_setWindowStateOnConfig(const css::uno::Refere css::uno::makeAny(sWindowState), ::comphelper::ConfigurationHelper::E_STANDARD); } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + catch(const css::uno::RuntimeException&) + { throw; } catch(const css::uno::Exception&) {} } |