[PATCH] Fixed cppcheck messages about rethrowing copy of =

PKEuS philipp.kloke at web.de
Fri Feb 3 09:18:02 PST 2012


exception.=0A=
=0A=
---=0A=
 chart2/source/tools/WrappedPropertySet.cxx         |   16 =
++++++++--------=0A=
 comphelper/source/misc/mediadescriptor.cxx         |    4 ++--=0A=
 .../source/drivers/postgresql/pq_xtable.cxx        |    2 +-=0A=
 .../source/drivers/postgresql/pq_xview.cxx         |    2 +-=0A=
 cui/source/customize/cfg.cxx                       |    2 +-=0A=
 cui/source/customize/cfgutil.cxx                   |   10 +++++-----=0A=
 desktop/source/deployment/registry/dp_backend.cxx  |    2 +-=0A=
 filter/source/config/cache/basecontainer.cxx       |    2 +-=0A=
 filter/source/config/cache/filtercache.cxx         |    2 +-=0A=
 filter/source/config/cache/filterfactory.cxx       |    6 +++---=0A=
 filter/source/config/cache/typedetection.cxx       |    2 +-=0A=
 .../globalacceleratorconfiguration.cxx             |    2 +-=0A=
 .../moduleacceleratorconfiguration.cxx             |    2 +-=0A=
 framework/source/accelerators/presethandler.cxx    |    6 +++---=0A=
 framework/source/accelerators/storageholder.cxx    |    4 ++--=0A=
 .../dispatch/dispatchinformationprovider.cxx       |    2 +-=0A=
 framework/source/helper/persistentwindowstate.cxx  |    6 +++---=0A=
 framework/source/jobs/helponstartup.cxx            |    8 ++++----=0A=
 framework/source/loadenv/loadenv.cxx               |    4 ++--=0A=
 framework/source/services/autorecovery.cxx         |    6 +++---=0A=
 framework/source/services/modulemanager.cxx        |    2 +-=0A=
 framework/source/services/pathsettings.cxx         |    6 +++---=0A=
 sfx2/source/appl/appserv.cxx                       |    4 ++--=0A=
 sfx2/source/appl/workwin.cxx                       |    4 ++--=0A=
 sfx2/source/notify/eventsupplier.cxx               |    4 ++--=0A=
 sfx2/source/view/ipclient.cxx                      |    4 ++--=0A=
 .../complex/ConfigItems/helper/HistoryOptTest.cxx  |    2 +-=0A=
 svl/source/config/itemholder2.cxx                  |    2 +-=0A=
 svtools/source/config/itemholder2.cxx              |    2 +-=0A=
 svx/source/unodraw/recoveryui.cxx                  |    2 +-=0A=
 svx/source/unodraw/unopage.cxx                     |    2 +-=0A=
 svx/source/unodraw/unoshcol.cxx                    |    2 +-=0A=
 32 files changed, 63 insertions(+), 63 deletions(-)=0A=
=0A=
diff --git a/chart2/source/tools/WrappedPropertySet.cxx =
b/chart2/source/tools/WrappedPropertySet.cxx=0A=
index fffe654..6937c18 100644=0A=
--- a/chart2/source/tools/WrappedPropertySet.cxx=0A=
+++ b/chart2/source/tools/WrappedPropertySet.cxx=0A=
@@ -126,23 +126,23 @@ void SAL_CALL =
WrappedPropertySet::setPropertyValue( const OUString& rPropertyNam=0A=
     }=0A=
     catch( const beans::UnknownPropertyException& ex )=0A=
     {=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
     catch( const beans::PropertyVetoException& ex )=0A=
     {=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
     catch( const lang::IllegalArgumentException& ex )=0A=
     {=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
     catch( const lang::WrappedTargetException& ex )=0A=
     {=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
     catch( const uno::RuntimeException& ex )=0A=
     {=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
     catch( const uno::Exception& ex )=0A=
     {=0A=
@@ -175,15 +175,15 @@ Any SAL_CALL WrappedPropertySet::getPropertyValue( =
const OUString& rPropertyName=0A=
     }=0A=
     catch( const beans::UnknownPropertyException& ex )=0A=
     {=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
     catch( const lang::WrappedTargetException& ex )=0A=
     {=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
     catch( const uno::RuntimeException& ex )=0A=
     {=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
     catch( const uno::Exception& ex )=0A=
     {=0A=
diff --git a/comphelper/source/misc/mediadescriptor.cxx =
b/comphelper/source/misc/mediadescriptor.cxx=0A=
index 90b713c..e0aa2ff 100644=0A=
--- a/comphelper/source/misc/mediadescriptor.cxx=0A=
+++ b/comphelper/source/misc/mediadescriptor.cxx=0A=
@@ -370,7 +370,7 @@ sal_Bool MediaDescriptor::isStreamReadOnly() const=0A=
         }=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 =0A=
@@ -751,7 +751,7 @@ sal_Bool MediaDescriptor::impl_openStreamWithURL( =
const ::rtl::OUString& sURL, s=0A=
         }=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 =0A=
diff --git a/connectivity/source/drivers/postgresql/pq_xtable.cxx =
b/connectivity/source/drivers/postgresql/pq_xtable.cxx=0A=
index e501056..606299e 100644=0A=
--- a/connectivity/source/drivers/postgresql/pq_xtable.cxx=0A=
+++ b/connectivity/source/drivers/postgresql/pq_xtable.cxx=0A=
@@ -244,7 +244,7 @@ void Table::rename( const ::rtl::OUString& newName )=0A=
                 OUStringBuffer buf( e.Message );=0A=
                 buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "(NOTE: =
Only postgresql server >=3D V8.1 support changing a table's schema)" ) );=0A=
                 e.Message =3D buf.makeStringAndClear();=0A=
-                throw e;=0A=
+                throw;=0A=
             }=0A=
 =0A=
         }=0A=
diff --git a/connectivity/source/drivers/postgresql/pq_xview.cxx =
b/connectivity/source/drivers/postgresql/pq_xview.cxx=0A=
index 6f27f92..dde838d 100644=0A=
--- a/connectivity/source/drivers/postgresql/pq_xview.cxx=0A=
+++ b/connectivity/source/drivers/postgresql/pq_xview.cxx=0A=
@@ -182,7 +182,7 @@ void View::rename( const ::rtl::OUString& newName )=0A=
             OUStringBuffer buf( e.Message );=0A=
             buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "(NOTE: Only =
postgresql server >=3D V8.1 support changing a table's schema)" ) );=0A=
             e.Message =3D buf.makeStringAndClear();=0A=
-            throw e;=0A=
+            throw;=0A=
         }=0A=
 =0A=
     }=0A=
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx=0A=
index 769789e..5c6af61 100644=0A=
--- a/cui/source/customize/cfg.cxx=0A=
+++ b/cui/source/customize/cfg.cxx=0A=
@@ -473,7 +473,7 @@ OUString GetUIModuleName( const OUString& aModuleId, =
const uno::Reference< css::=0A=
             }=0A=
             catch ( uno::RuntimeException& e )=0A=
             {=0A=
-                throw e;=0A=
+                throw;=0A=
             }=0A=
             catch ( uno::Exception& )=0A=
             {=0A=
diff --git a/cui/source/customize/cfgutil.cxx =
b/cui/source/customize/cfgutil.cxx=0A=
index f5fb4a8..7cacd4f 100644=0A=
--- a/cui/source/customize/cfgutil.cxx=0A=
+++ b/cui/source/customize/cfgutil.cxx=0A=
@@ -173,7 +173,7 @@ void =
SfxStylesInfo_Impl::getLabel4Style(SfxStyleInfo_Impl& aStyle)=0A=
             xStyle->getPropertyValue(STYLEPROP_UINAME) >>=3D =
aStyle.sLabel;=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { aStyle.sLabel =3D ::rtl::OUString(); }=0A=
 =0A=
@@ -237,7 +237,7 @@ void =
SfxStylesInfo_Impl::getLabel4Style(SfxStyleInfo_Impl& aStyle)=0A=
         lStyleNames =3D xStyleSet->getElementNames();=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { return ::std::vector< SfxStyleInfo_Impl >(); }=0A=
 =0A=
@@ -260,7 +260,7 @@ void =
SfxStylesInfo_Impl::getLabel4Style(SfxStyleInfo_Impl& aStyle)=0A=
             xStyle->getPropertyValue(PROP_UINAME) >>=3D =
aStyleInfo.sLabel;=0A=
         }=0A=
         catch(const css::uno::RuntimeException& exRun)=0A=
-            { throw exRun; }=0A=
+            { throw; }=0A=
         catch(const css::uno::Exception&)=0A=
             { continue; }=0A=
 =0A=
@@ -514,7 +514,7 @@ void SfxConfigGroupListBox_Impl::InitModule()=0A=
         }=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 }=0A=
@@ -880,7 +880,7 @@ SfxConfigGroupListBox_Impl::getDocumentModel( =
Reference< XComponentContext >& xC=0A=
         }=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(css::uno::Exception&)=0A=
         { sUIName =3D ::rtl::OUString(); }=0A=
 =0A=
diff --git a/desktop/source/deployment/registry/dp_backend.cxx =
b/desktop/source/deployment/registry/dp_backend.cxx=0A=
index cbb1bec..f25c8a8 100644=0A=
--- a/desktop/source/deployment/registry/dp_backend.cxx=0A=
+++ b/desktop/source/deployment/registry/dp_backend.cxx=0A=
@@ -309,7 +309,7 @@ void PackageRegistryBackend::deleteUnusedFolders(=0A=
         //In case the folder containing all the data folder does not=0A=
         //exist yet, we ignore the exception=0A=
         if (e.Code !=3D ucb::IOErrorCode_NOT_EXISTING)=0A=
-            throw e;=0A=
+            throw;=0A=
     }=0A=
 =0A=
 }=0A=
diff --git a/filter/source/config/cache/basecontainer.cxx =
b/filter/source/config/cache/basecontainer.cxx=0A=
index 7fa2faa..642c726 100644=0A=
--- a/filter/source/config/cache/basecontainer.cxx=0A=
+++ b/filter/source/config/cache/basecontainer.cxx=0A=
@@ -344,7 +344,7 @@ css::uno::Any SAL_CALL =
BaseContainer::getByName(const ::rtl::OUString& sItem)=0A=
     }=0A=
     catch(const css::container::NoSuchElementException& exNotExist)=0A=
     {=0A=
-        throw exNotExist;=0A=
+        throw;=0A=
     }=0A=
     catch(const css::uno::Exception&)=0A=
     {=0A=
diff --git a/filter/source/config/cache/filtercache.cxx =
b/filter/source/config/cache/filtercache.cxx=0A=
index b623e13..fff7a69 100644=0A=
--- a/filter/source/config/cache/filtercache.cxx=0A=
+++ b/filter/source/config/cache/filtercache.cxx=0A=
@@ -932,7 +932,7 @@ css::uno::Any =
FilterCache::impl_getDirectCFGValue(const ::rtl::OUString& sDirect=0A=
         aValue =3D xAccess->getByName(sKey);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     #if OSL_DEBUG_LEVEL > 0=0A=
     catch(const css::uno::Exception& ex)=0A=
     #else=0A=
diff --git a/filter/source/config/cache/filterfactory.cxx =
b/filter/source/config/cache/filterfactory.cxx=0A=
index 4620b3e..cbd1e7e 100644=0A=
--- a/filter/source/config/cache/filterfactory.cxx=0A=
+++ b/filter/source/config/cache/filterfactory.cxx=0A=
@@ -415,7 +415,7 @@ OUStringList =
FilterFactory::impl_queryMatchByDocumentService(const QueryTokenize=0A=
             lResult.push_back(sName);=0A=
         }=0A=
         catch(const css::uno::RuntimeException& exRun)=0A=
-            { throw exRun; }=0A=
+            { throw; }=0A=
         catch(const css::uno::Exception&)=0A=
             { continue; }=0A=
     }=0A=
@@ -540,7 +540,7 @@ OUStringList =
FilterFactory::impl_getListOfInstalledModules() const=0A=
         return lModules;=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 =0A=
@@ -634,7 +634,7 @@ OUStringList =
FilterFactory::impl_readSortedFilterListFromConfig(const ::rtl::OUS=0A=
         }=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 =0A=
diff --git a/filter/source/config/cache/typedetection.cxx =
b/filter/source/config/cache/typedetection.cxx=0A=
index 7a5ec96..0a06025 100644=0A=
--- a/filter/source/config/cache/typedetection.cxx=0A=
+++ b/filter/source/config/cache/typedetection.cxx=0A=
@@ -966,7 +966,7 @@ void =
TypeDetection::impl_seekStreamToZero(comphelper::MediaDescriptor& =
rDescript=0A=
             xSeek->seek(0);=0A=
         }=0A=
         catch(const css::uno::RuntimeException& exRun)=0A=
-            { throw exRun; }=0A=
+            { throw; }=0A=
         catch(const css::uno::Exception&)=0A=
             {}=0A=
     }=0A=
diff --git =
a/framework/source/accelerators/globalacceleratorconfiguration.cxx =
b/framework/source/accelerators/globalacceleratorconfiguration.cxx=0A=
index 84da269..3b9ab18 100644=0A=
--- a/framework/source/accelerators/globalacceleratorconfiguration.cxx=0A=
+++ b/framework/source/accelerators/globalacceleratorconfiguration.cxx=0A=
@@ -120,7 +120,7 @@ void =
GlobalAcceleratorConfiguration::impl_ts_fillCache()=0A=
         xBroadcaster->addChangesListener(m_xCfgListener);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 }=0A=
diff --git =
a/framework/source/accelerators/moduleacceleratorconfiguration.cxx =
b/framework/source/accelerators/moduleacceleratorconfiguration.cxx=0A=
index 9c3fb8f..fa882e1 100644=0A=
--- a/framework/source/accelerators/moduleacceleratorconfiguration.cxx=0A=
+++ b/framework/source/accelerators/moduleacceleratorconfiguration.cxx=0A=
@@ -154,7 +154,7 @@ void =
ModuleAcceleratorConfiguration::impl_ts_fillCache()=0A=
         xBroadcaster->addChangesListener(m_xCfgListener);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 }=0A=
diff --git a/framework/source/accelerators/presethandler.cxx =
b/framework/source/accelerators/presethandler.cxx=0A=
index d276b48..59bc8ad 100644=0A=
--- a/framework/source/accelerators/presethandler.cxx=0A=
+++ b/framework/source/accelerators/presethandler.cxx=0A=
@@ -502,7 +502,7 @@ void PresetHandler::connectToResource(      =
PresetHandler::EConfigType=0A=
                 xShare =3D xUser;=0A=
             }=0A=
             catch(const css::uno::RuntimeException& exRun)=0A=
-                { throw exRun; }=0A=
+                { throw; }=0A=
             catch(const css::uno::Exception&)=0A=
                 { xShare.clear(); xUser.clear(); }=0A=
         }=0A=
@@ -823,7 +823,7 @@ css::uno::Reference< css::embed::XStorage > =
PresetHandler::impl_openPathIgnoring=0A=
             xPath =3D =
m_aSharedStorages->m_lStoragesUser.openPath(sPath, eMode);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { xPath.clear(); }=0A=
     return xPath;=0A=
@@ -922,7 +922,7 @@ css::uno::Reference< css::embed::XStorage > =
PresetHandler::impl_openLocalizedPat=0A=
                 lSubFolders.push_back(pNames[i]);=0A=
         }=0A=
         catch(const css::uno::RuntimeException& exRun)=0A=
-            { throw exRun; }=0A=
+            { throw; }=0A=
         catch(const css::uno::Exception&)=0A=
             {}=0A=
     }=0A=
diff --git a/framework/source/accelerators/storageholder.cxx =
b/framework/source/accelerators/storageholder.cxx=0A=
index d60e18d..48a6e2e 100644=0A=
--- a/framework/source/accelerators/storageholder.cxx=0A=
+++ b/framework/source/accelerators/storageholder.cxx=0A=
@@ -182,7 +182,7 @@ css::uno::Reference< css::embed::XStorage > =
StorageHolder::openPath(const ::rtl:=0A=
                 xChild =3D =
StorageHolder::openSubStorageWithFallback(xParent, sChild, nOpenMode, =
sal_True); // TODO think about delegating fallback decision to our own =
calli!=0A=
             }=0A=
             catch(const css::uno::RuntimeException& exRun)=0A=
-                { throw exRun; }=0A=
+                { throw; }=0A=
             catch(const css::uno::Exception& exAny)=0A=
                 {=0A=
                     /* TODO URGENT!=0A=
@@ -195,7 +195,7 @@ css::uno::Reference< css::embed::XStorage > =
StorageHolder::openPath(const ::rtl:=0A=
                         A flush method with the same unique number =
force increasing of the "UseCount" variable then=0A=
                         inside a synchronized block ...=0A=
                     */=0A=
-                    throw exAny;=0A=
+                    throw;=0A=
                 }=0A=
 =0A=
             // SAFE -> ------------------------------=0A=
diff --git a/framework/source/dispatch/dispatchinformationprovider.cxx =
b/framework/source/dispatch/dispatchinformationprovider.cxx=0A=
index ba8ff65..98e7f35 100644=0A=
--- a/framework/source/dispatch/dispatchinformationprovider.cxx=0A=
+++ b/framework/source/dispatch/dispatchinformationprovider.cxx=0A=
@@ -139,7 +139,7 @@ css::uno::Sequence< css::frame::DispatchInformation =
> SAL_CALL DispatchInformati=0A=
             }=0A=
         }=0A=
         catch(const css::uno::RuntimeException& exRun)=0A=
-            { throw exRun; }=0A=
+            { throw; }=0A=
         catch(const css::uno::Exception&)=0A=
             { continue; }=0A=
     }=0A=
diff --git a/framework/source/helper/persistentwindowstate.cxx =
b/framework/source/helper/persistentwindowstate.cxx=0A=
index f2e9bcf..7f07645 100644=0A=
--- a/framework/source/helper/persistentwindowstate.cxx=0A=
+++ b/framework/source/helper/persistentwindowstate.cxx=0A=
@@ -209,7 +209,7 @@ void SAL_CALL PersistentWindowState::disposing(const =
css::lang::EventObject&)=0A=
         sModuleName =3D xModuleManager->identify(xFrame);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { sModuleName =3D ::rtl::OUString(); }=0A=
 =0A=
@@ -240,7 +240,7 @@ void SAL_CALL PersistentWindowState::disposing(const =
css::lang::EventObject&)=0A=
                                                                         =
              ::comphelper::ConfigurationHelper::E_READONLY) >>=3D =
sWindowState;=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { sWindowState =3D ::rtl::OUString(); }=0A=
 =0A=
@@ -271,7 +271,7 @@ void =
PersistentWindowState::implst_setWindowStateOnConfig(const =
css::uno::Refere=0A=
                                                           =
::comphelper::ConfigurationHelper::E_STANDARD);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 }=0A=
diff --git a/framework/source/jobs/helponstartup.cxx =
b/framework/source/jobs/helponstartup.cxx=0A=
index c897cce..8e34fd1 100644=0A=
--- a/framework/source/jobs/helponstartup.cxx=0A=
+++ b/framework/source/jobs/helponstartup.cxx=0A=
@@ -269,7 +269,7 @@ void SAL_CALL HelpOnStartup::disposing(const =
css::lang::EventObject& aEvent)=0A=
         sModuleId =3D xModuleManager->identify(xDoc);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { sModuleId =3D ::rtl::OUString(); }=0A=
 =0A=
@@ -311,7 +311,7 @@ void SAL_CALL HelpOnStartup::disposing(const =
css::lang::EventObject& aEvent)=0A=
             sCurrentHelpURL =3D xHelpContent->getURL();=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { sCurrentHelpURL =3D ::rtl::OUString(); }=0A=
 =0A=
@@ -358,7 +358,7 @@ void SAL_CALL HelpOnStartup::disposing(const =
css::lang::EventObject& aEvent)=0A=
                 return sal_True;=0A=
         }=0A=
         catch(const css::uno::RuntimeException& exRun)=0A=
-            { throw exRun; }=0A=
+            { throw; }=0A=
         catch(const css::uno::Exception&)=0A=
             {}=0A=
     }=0A=
@@ -397,7 +397,7 @@ void SAL_CALL HelpOnStartup::disposing(const =
css::lang::EventObject& aEvent)=0A=
         }=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { sHelpURL =3D ::rtl::OUString(); }=0A=
 =0A=
diff --git a/framework/source/loadenv/loadenv.cxx =
b/framework/source/loadenv/loadenv.cxx=0A=
index dc5736f..38d30c1 100644=0A=
--- a/framework/source/loadenv/loadenv.cxx=0A=
+++ b/framework/source/loadenv/loadenv.cxx=0A=
@@ -1384,7 +1384,7 @@ css::uno::Reference< css::frame::XFrame > =
LoadEnv::impl_searchAlreadyLoaded()=0A=
             break;=0A=
         }=0A=
         catch(const css::uno::RuntimeException& exRun)=0A=
-            { throw exRun; }=0A=
+            { throw; }=0A=
         catch(const css::uno::Exception&)=0A=
             { continue; }=0A=
     }=0A=
@@ -1812,7 +1812,7 @@ void =
LoadEnv::impl_applyPersistentWindowState(const css::uno::Reference< =
css::aw=0A=
         }=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 }=0A=
diff --git a/framework/source/services/autorecovery.cxx =
b/framework/source/services/autorecovery.cxx=0A=
index 6d2b6b6..8556970 100644=0A=
--- a/framework/source/services/autorecovery.cxx=0A=
+++ b/framework/source/services/autorecovery.cxx=0A=
@@ -1355,7 +1355,7 @@ void AutoRecovery::implts_flushConfigItem(const =
AutoRecovery::TDocumentInfo& rIn=0A=
                     nRetry =3D RETRY_STORE_ON_MIGHT_FULL_DISC_USEFULL;=0A=
                 else=0A=
                 if (nRetry <=3D GIVE_UP_RETRY)=0A=
-                    throw ex; // force stacktrace to know if there =
exist might other reasons, why an AutoSave can fail !!!=0A=
+                    throw; // force stacktrace to know if there exist =
might other reasons, why an AutoSave can fail !!!=0A=
 =0A=
                 --nRetry;=0A=
             }=0A=
@@ -2395,7 +2395,7 @@ void AutoRecovery::implts_saveOneDoc(const =
::rtl::OUString&=0A=
                     nRetry =3D RETRY_STORE_ON_MIGHT_FULL_DISC_USEFULL;=0A=
                 else=0A=
                 if (nRetry <=3D GIVE_UP_RETRY)=0A=
-                    throw ex; // force stacktrace to know if there =
exist might other reasons, why an AutoSave can fail !!!=0A=
+                    throw; // force stacktrace to know if there exist =
might other reasons, why an AutoSave can fail !!!=0A=
 =0A=
                 --nRetry;=0A=
             }=0A=
@@ -3444,7 +3444,7 @@ void =
AutoRecovery::implts_verifyCacheAgainstDesktopDocumentList()=0A=
         }=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 =0A=
diff --git a/framework/source/services/modulemanager.cxx =
b/framework/source/services/modulemanager.cxx=0A=
index 4cec298..9ae3cfd 100644=0A=
--- a/framework/source/services/modulemanager.cxx=0A=
+++ b/framework/source/services/modulemanager.cxx=0A=
@@ -378,7 +378,7 @@ css::uno::Reference< css::container::XNameAccess > =
ModuleManager::implts_getConf=0A=
                     ::comphelper::ConfigurationHelper::E_READONLY);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         { xCfg.clear(); }=0A=
 =0A=
diff --git a/framework/source/services/pathsettings.cxx =
b/framework/source/services/pathsettings.cxx=0A=
index d94df43..1896bbc 100644=0A=
--- a/framework/source/services/pathsettings.cxx=0A=
+++ b/framework/source/services/pathsettings.cxx=0A=
@@ -414,11 +414,11 @@ PathSettings::EChangeOp =
PathSettings::impl_updatePath(const ::rtl::OUString& sPa=0A=
         impl_subst(aPath, sal_False);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::container::NoSuchElementException&)=0A=
         { eOp =3D PathSettings::E_REMOVED; }=0A=
     catch(const css::uno::Exception& exAny)=0A=
-        { throw exAny; }=0A=
+        { throw; }=0A=
 =0A=
     #ifdef MIGRATE_OLD_USER_PATHES=0A=
     try=0A=
@@ -434,7 +434,7 @@ PathSettings::EChangeOp =
PathSettings::impl_updatePath(const ::rtl::OUString& sPa=0A=
         impl_mergeOldUserPaths(aPath, lOldVals);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     // Normal(!) exceptions can be ignored!=0A=
     // E.g. in case an addon installs a new path, which was not well =
known for an OOo 1.x installation=0A=
     // we cant find a value for it inside the "old" configuration. So a =
NoSuchElementException=0A=
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx=0A=
index bc4b1f4..4e2029f 100644=0A=
--- a/sfx2/source/appl/appserv.cxx=0A=
+++ b/sfx2/source/appl/appserv.cxx=0A=
@@ -588,7 +588,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq =
)=0A=
                     }=0A=
                     catch ( const =
::com::sun::star::uno::RuntimeException& e )=0A=
                     {=0A=
-                        throw e;=0A=
+                        throw;=0A=
                     }=0A=
                     catch ( ::com::sun::star::uno::Exception& )=0A=
                     {=0A=
@@ -890,7 +890,7 @@ static ::rtl::OUString getConfigurationStringValue(=0A=
             ::comphelper::ConfigurationHelper::E_READONLY) >>=3D =
aDefVal;=0A=
     }=0A=
     catch(const com::sun::star::uno::RuntimeException& exRun)=0A=
-    { throw exRun; }=0A=
+    { throw; }=0A=
     catch(const com::sun::star::uno::Exception&)=0A=
     {}=0A=
 =0A=
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx=0A=
index 9281858..c11f494 100644=0A=
--- a/sfx2/source/appl/workwin.cxx=0A=
+++ b/sfx2/source/appl/workwin.cxx=0A=
@@ -203,7 +203,7 @@ void LayoutManagerListener::setFrame( const =
css::uno::Reference< css::frame::XFr=0A=
                 }=0A=
                 catch ( const css::uno::RuntimeException& e )=0A=
                 {=0A=
-                    throw e;=0A=
+                    throw;=0A=
                 }=0A=
                 catch ( css::uno::Exception& )=0A=
                 {=0A=
@@ -264,7 +264,7 @@ throw( css::uno::RuntimeException )=0A=
             }=0A=
             catch ( const css::uno::RuntimeException& e )=0A=
             {=0A=
-                throw e;=0A=
+                throw;=0A=
             }=0A=
             catch ( css::uno::Exception& )=0A=
             {=0A=
diff --git a/sfx2/source/notify/eventsupplier.cxx =
b/sfx2/source/notify/eventsupplier.cxx=0A=
index e8d3693..c5a6d6b 100644=0A=
--- a/sfx2/source/notify/eventsupplier.cxx=0A=
+++ b/sfx2/source/notify/eventsupplier.cxx=0A=
@@ -811,7 +811,7 @@ void =
SfxGlobalEvents_Impl::implts_notifyJobExecution(const =
css::document::EventO=0A=
             xJobExecutor->notifyEvent(aEvent);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 }=0A=
@@ -833,7 +833,7 @@ void =
SfxGlobalEvents_Impl::implts_checkAndExecuteEventBindings(const =
css::docume=0A=
         Execute(aAny, aEvent, 0);=0A=
     }=0A=
     catch(const css::uno::RuntimeException& exRun)=0A=
-        { throw exRun; }=0A=
+        { throw; }=0A=
     catch(const css::uno::Exception&)=0A=
         {}=0A=
 }=0A=
diff --git a/sfx2/source/view/ipclient.cxx =
b/sfx2/source/view/ipclient.cxx=0A=
index e2b408f..1f5d49d 100644=0A=
--- a/sfx2/source/view/ipclient.cxx=0A=
+++ b/sfx2/source/view/ipclient.cxx=0A=
@@ -281,7 +281,7 @@ void SAL_CALL SfxInPlaceClient_Impl::saveObject()=0A=
             }=0A=
             catch ( const uno::RuntimeException& e )=0A=
             {=0A=
-                throw e;=0A=
+                throw;=0A=
             }=0A=
             catch ( uno::Exception& )=0A=
             {=0A=
@@ -311,7 +311,7 @@ void SAL_CALL SfxInPlaceClient_Impl::saveObject()=0A=
     }=0A=
     catch ( const uno::RuntimeException& e )=0A=
     {=0A=
-        throw e;=0A=
+        throw;=0A=
     }=0A=
     catch ( uno::Exception& )=0A=
     {=0A=
diff --git a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx =
b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx=0A=
index dde561d..34a6852 100644=0A=
--- a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx=0A=
+++ b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx=0A=
@@ -172,7 +172,7 @@ void HistoryOptTest::impl_testHistory(EHistoryType =
eHistory ,=0A=
     catch (const css::uno::Exception& ex)=0A=
     {=0A=
         impl_clearList();=0A=
-        throw ex;=0A=
+        throw;=0A=
     }=0A=
 =0A=
 }=0A=
diff --git a/svl/source/config/itemholder2.cxx =
b/svl/source/config/itemholder2.cxx=0A=
index f2545d4..f39642b 100644=0A=
--- a/svl/source/config/itemholder2.cxx=0A=
+++ b/svl/source/config/itemholder2.cxx=0A=
@@ -64,7 +64,7 @@ ItemHolder2::ItemHolder2()=0A=
     }=0A=
     catch(const css::uno::RuntimeException& rREx)=0A=
     {=0A=
-        throw rREx;=0A=
+        throw;=0A=
     }=0A=
 #ifdef DBG_UTIL=0A=
     catch(const css::uno::Exception& rEx)=0A=
diff --git a/svtools/source/config/itemholder2.cxx =
b/svtools/source/config/itemholder2.cxx=0A=
index 9e9a1ab..17101b8 100644=0A=
--- a/svtools/source/config/itemholder2.cxx=0A=
+++ b/svtools/source/config/itemholder2.cxx=0A=
@@ -71,7 +71,7 @@ ItemHolder2::ItemHolder2()=0A=
     }=0A=
     catch(const css::uno::RuntimeException& rREx)=0A=
     {=0A=
-        throw rREx;=0A=
+        throw;=0A=
     }=0A=
 #ifdef DBG_UTIL=0A=
     catch(const css::uno::Exception& rEx)=0A=
diff --git a/svx/source/unodraw/recoveryui.cxx =
b/svx/source/unodraw/recoveryui.cxx=0A=
index 5a33691..0b664fd 100644=0A=
--- a/svx/source/unodraw/recoveryui.cxx=0A=
+++ b/svx/source/unodraw/recoveryui.cxx=0A=
@@ -390,7 +390,7 @@ void RecoveryUI::impl_showAllRecoveredDocs()=0A=
             xWindow->setVisible(sal_True);=0A=
         }=0A=
         catch(const css::uno::RuntimeException& exRun)=0A=
-            { throw exRun; }=0A=
+            { throw; }=0A=
         catch(const css::uno::Exception&)=0A=
             { continue; }=0A=
     }=0A=
diff --git a/svx/source/unodraw/unopage.cxx =
b/svx/source/unodraw/unopage.cxx=0A=
index cb5aab3..c408030 100644=0A=
--- a/svx/source/unodraw/unopage.cxx=0A=
+++ b/svx/source/unodraw/unopage.cxx=0A=
@@ -192,7 +192,7 @@ void SvxDrawPage::dispose()=0A=
             // only once.=0A=
             mrBHelper.bDisposed =3D sal_True;=0A=
             mrBHelper.bInDispose =3D sal_False;=0A=
-            throw e;=0A=
+            throw;=0A=
         }=0A=
 =0A=
         // the values bDispose and bInDisposing must set in this order.=0A=
diff --git a/svx/source/unodraw/unoshcol.cxx =
b/svx/source/unodraw/unoshcol.cxx=0A=
index 8686887..4bb535c 100644=0A=
--- a/svx/source/unodraw/unoshcol.cxx=0A=
+++ b/svx/source/unodraw/unoshcol.cxx=0A=
@@ -144,7 +144,7 @@ void SvxShapeCollection::dispose()=0A=
             // only once.=0A=
             mrBHelper.bDisposed =3D sal_True;=0A=
             mrBHelper.bInDispose =3D sal_False;=0A=
-            throw e;=0A=
+            throw;=0A=
         }=0A=
 =0A=
         // the values bDispose and bInDisposing must set in this order.=0A=
-- =0A=
1.7.9.msysgit.0=0A=
=0A=

------=_NextPart_000_0005_01CCE27D.E2DD11F0--



More information about the LibreOffice mailing list