diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-01-31 22:49:51 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-01-31 22:50:32 +0100 |
commit | a3e9dedc68658bb62f7b58040f6fcaf4e03ed93e (patch) | |
tree | 5792b5dd9dd5151216619cf372f59b9ad957aa30 /cui | |
parent | Remove unused code. (diff) | |
download | core-a3e9dedc68658bb62f7b58040f6fcaf4e03ed93e.tar.gz core-a3e9dedc68658bb62f7b58040f6fcaf4e03ed93e.zip |
Fix "Throwing a copy of the caught exception instead of rethrowing"
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/acccfg.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index 9a2a918e1661..5c791888707d 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -885,7 +885,7 @@ void SfxAcceleratorConfigPage::InitAccCfg() m_xModule = css::uno::Reference< css::ui::XAcceleratorConfiguration >(xUICfgManager->getShortCutManager(), css::uno::UNO_QUERY_THROW); } catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + { throw; } catch(const css::uno::Exception&) { m_xSMGR.clear(); } } @@ -1021,7 +1021,7 @@ void SfxAcceleratorConfigPage::Apply(const css::uno::Reference< css::ui::XAccele xAccMgr->removeKeyEvent(aAWTKey); } catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + { throw; } catch(const css::uno::Exception&) {} @@ -1299,7 +1299,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, LoadHdl, sfx2::FileDialogHelper*, EMPTYARG } } catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + { throw; } catch(const css::uno::Exception&) {} @@ -1401,7 +1401,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, EMPTYARG } } catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + { throw; } catch(const css::uno::Exception&) {} @@ -1438,7 +1438,7 @@ sal_Bool SfxAcceleratorConfigPage::FillItemSet( SfxItemSet& ) m_xAct->store(); } catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + { throw; } catch(const css::uno::Exception&) { return sal_False; } @@ -1527,7 +1527,7 @@ String SfxAcceleratorConfigPage::GetLabel4Command(const String& sCommand) } } catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + { throw; } catch(const css::uno::Exception&) {} |