Kaydet (Commit) a3e9dedc authored tarafından Julien Nabet's avatar Julien Nabet

Fix "Throwing a copy of the caught exception instead of rethrowing"

üst 00445037
...@@ -885,7 +885,7 @@ void SfxAcceleratorConfigPage::InitAccCfg() ...@@ -885,7 +885,7 @@ void SfxAcceleratorConfigPage::InitAccCfg()
m_xModule = css::uno::Reference< css::ui::XAcceleratorConfiguration >(xUICfgManager->getShortCutManager(), css::uno::UNO_QUERY_THROW); m_xModule = css::uno::Reference< css::ui::XAcceleratorConfiguration >(xUICfgManager->getShortCutManager(), css::uno::UNO_QUERY_THROW);
} }
catch(const css::uno::RuntimeException& exRun) catch(const css::uno::RuntimeException& exRun)
{ throw exRun; } { throw; }
catch(const css::uno::Exception&) catch(const css::uno::Exception&)
{ m_xSMGR.clear(); } { m_xSMGR.clear(); }
} }
...@@ -1021,7 +1021,7 @@ void SfxAcceleratorConfigPage::Apply(const css::uno::Reference< css::ui::XAccele ...@@ -1021,7 +1021,7 @@ void SfxAcceleratorConfigPage::Apply(const css::uno::Reference< css::ui::XAccele
xAccMgr->removeKeyEvent(aAWTKey); xAccMgr->removeKeyEvent(aAWTKey);
} }
catch(const css::uno::RuntimeException& exRun) catch(const css::uno::RuntimeException& exRun)
{ throw exRun; } { throw; }
catch(const css::uno::Exception&) catch(const css::uno::Exception&)
{} {}
...@@ -1299,7 +1299,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, LoadHdl, sfx2::FileDialogHelper*, EMPTYARG ...@@ -1299,7 +1299,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, LoadHdl, sfx2::FileDialogHelper*, EMPTYARG
} }
} }
catch(const css::uno::RuntimeException& exRun) catch(const css::uno::RuntimeException& exRun)
{ throw exRun; } { throw; }
catch(const css::uno::Exception&) catch(const css::uno::Exception&)
{} {}
...@@ -1401,7 +1401,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, EMPTYARG ...@@ -1401,7 +1401,7 @@ IMPL_LINK( SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, EMPTYARG
} }
} }
catch(const css::uno::RuntimeException& exRun) catch(const css::uno::RuntimeException& exRun)
{ throw exRun; } { throw; }
catch(const css::uno::Exception&) catch(const css::uno::Exception&)
{} {}
...@@ -1438,7 +1438,7 @@ sal_Bool SfxAcceleratorConfigPage::FillItemSet( SfxItemSet& ) ...@@ -1438,7 +1438,7 @@ sal_Bool SfxAcceleratorConfigPage::FillItemSet( SfxItemSet& )
m_xAct->store(); m_xAct->store();
} }
catch(const css::uno::RuntimeException& exRun) catch(const css::uno::RuntimeException& exRun)
{ throw exRun; } { throw; }
catch(const css::uno::Exception&) catch(const css::uno::Exception&)
{ return sal_False; } { return sal_False; }
...@@ -1527,7 +1527,7 @@ String SfxAcceleratorConfigPage::GetLabel4Command(const String& sCommand) ...@@ -1527,7 +1527,7 @@ String SfxAcceleratorConfigPage::GetLabel4Command(const String& sCommand)
} }
} }
catch(const css::uno::RuntimeException& exRun) catch(const css::uno::RuntimeException& exRun)
{ throw exRun; } { throw; }
catch(const css::uno::Exception&) catch(const css::uno::Exception&)
{} {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment