[Libreoffice-commits] .: cui/source

Julien Nabet serval2412 at kemper.freedesktop.org
Tue Jan 31 13:51:10 PST 2012


 cui/source/customize/acccfg.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit a3e9dedc68658bb62f7b58040f6fcaf4e03ed93e
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Jan 31 22:49:51 2012 +0100

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

diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index 9a2a918..5c79188 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&)
         {}
 


More information about the Libreoffice-commits mailing list