>From 7c06dd3a61a1caa34765b739cd552a06ad63f210 Mon Sep 17 00:00:00 2001
From: PKEuS <philipp.kloke@web.de>
Date: Fri, 3 Feb 2012 09:18:02 +0100
Subject: [PATCH] Fixed cppcheck messages about rethrowing copy of exception.

---
 chart2/source/tools/WrappedPropertySet.cxx         |   16 ++++++++--------
 comphelper/source/misc/mediadescriptor.cxx         |    4 ++--
 .../source/drivers/postgresql/pq_xtable.cxx        |    2 +-
 .../source/drivers/postgresql/pq_xview.cxx         |    2 +-
 cui/source/customize/cfg.cxx                       |    2 +-
 cui/source/customize/cfgutil.cxx                   |   10 +++++-----
 desktop/source/deployment/registry/dp_backend.cxx  |    2 +-
 filter/source/config/cache/basecontainer.cxx       |    2 +-
 filter/source/config/cache/filtercache.cxx         |    2 +-
 filter/source/config/cache/filterfactory.cxx       |    6 +++---
 filter/source/config/cache/typedetection.cxx       |    2 +-
 .../globalacceleratorconfiguration.cxx             |    2 +-
 .../moduleacceleratorconfiguration.cxx             |    2 +-
 framework/source/accelerators/presethandler.cxx    |    6 +++---
 framework/source/accelerators/storageholder.cxx    |    4 ++--
 .../dispatch/dispatchinformationprovider.cxx       |    2 +-
 framework/source/helper/persistentwindowstate.cxx  |    6 +++---
 framework/source/jobs/helponstartup.cxx            |    8 ++++----
 framework/source/loadenv/loadenv.cxx               |    4 ++--
 framework/source/services/autorecovery.cxx         |    6 +++---
 framework/source/services/modulemanager.cxx        |    2 +-
 framework/source/services/pathsettings.cxx         |    6 +++---
 sfx2/source/appl/appserv.cxx                       |    4 ++--
 sfx2/source/appl/workwin.cxx                       |    4 ++--
 sfx2/source/notify/eventsupplier.cxx               |    4 ++--
 sfx2/source/view/ipclient.cxx                      |    4 ++--
 .../complex/ConfigItems/helper/HistoryOptTest.cxx  |    2 +-
 svl/source/config/itemholder2.cxx                  |    2 +-
 svtools/source/config/itemholder2.cxx              |    2 +-
 svx/source/unodraw/recoveryui.cxx                  |    2 +-
 svx/source/unodraw/unopage.cxx                     |    2 +-
 svx/source/unodraw/unoshcol.cxx                    |    2 +-
 32 files changed, 63 insertions(+), 63 deletions(-)

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

