diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-02-02 22:53:48 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-02-02 22:55:17 +0100 |
commit | f58c49b39a7c6a8490033360f78768ee0a26f167 (patch) | |
tree | d73b74cdf77c81c6b310c66dff100d5e7a66e432 | |
parent | beccf7c9dd4966347fa31e11922fd73bd40dfeb9 (diff) |
Some cppcheck cleaning
5 files changed, 17 insertions, 17 deletions
diff --git a/framework/source/accelerators/globalacceleratorconfiguration.cxx b/framework/source/accelerators/globalacceleratorconfiguration.cxx index 84da2697ae85..c5853f8f1fa5 100644 --- a/framework/source/accelerators/globalacceleratorconfiguration.cxx +++ b/framework/source/accelerators/globalacceleratorconfiguration.cxx @@ -119,8 +119,8 @@ void GlobalAcceleratorConfiguration::impl_ts_fillCache() m_xCfgListener = new WeakChangesListener(this); xBroadcaster->addChangesListener(m_xCfgListener); } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + catch(const css::uno::RuntimeException&) + { throw; } catch(const css::uno::Exception&) {} } diff --git a/framework/source/accelerators/moduleacceleratorconfiguration.cxx b/framework/source/accelerators/moduleacceleratorconfiguration.cxx index 9c3fb8f2a754..7100685aa89a 100644 --- a/framework/source/accelerators/moduleacceleratorconfiguration.cxx +++ b/framework/source/accelerators/moduleacceleratorconfiguration.cxx @@ -153,8 +153,8 @@ void ModuleAcceleratorConfiguration::impl_ts_fillCache() m_xCfgListener = new WeakChangesListener(this); xBroadcaster->addChangesListener(m_xCfgListener); } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + catch(const css::uno::RuntimeException&) + { throw; } catch(const css::uno::Exception&) {} } diff --git a/framework/source/accelerators/presethandler.cxx b/framework/source/accelerators/presethandler.cxx index d276b486eba8..b68fdc458d23 100644 --- a/framework/source/accelerators/presethandler.cxx +++ b/framework/source/accelerators/presethandler.cxx @@ -501,8 +501,8 @@ void PresetHandler::connectToResource( PresetHandler::EConfigType xUser = m_lDocumentStorages.openPath(sRelPathUser , eUserMode ); xShare = xUser; } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + catch(const css::uno::RuntimeException&) + { throw; } catch(const css::uno::Exception&) { xShare.clear(); xUser.clear(); } } @@ -822,8 +822,8 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openPathIgnoring else xPath = m_aSharedStorages->m_lStoragesUser.openPath(sPath, eMode); } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + catch(const css::uno::RuntimeException&) + { throw; } catch(const css::uno::Exception&) { xPath.clear(); } return xPath; @@ -921,8 +921,8 @@ css::uno::Reference< css::embed::XStorage > PresetHandler::impl_openLocalizedPat if (xFolder->isStorageElement(pNames[i])) lSubFolders.push_back(pNames[i]); } - catch(const css::uno::RuntimeException& exRun) - { throw exRun; } + catch(const css::uno::RuntimeException&) + { throw; } catch(const css::uno::Exception&) {} } diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 6d2b6b6314ea..cae935b86215 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -1336,7 +1336,7 @@ void AutoRecovery::implts_flushConfigItem(const AutoRecovery::TDocumentInfo& rIn nRetry = 0; } - catch(const css::uno::Exception& ex) + catch(const css::uno::Exception&) { // a) FULL DISC seams to be the problem behind => show error and retry it forever (e.g. retry=300) // b) unknown problem (may be locking problem) => reset RETRY value to more usefull value(!) (e.g. retry=3) @@ -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; } @@ -2374,7 +2374,7 @@ void AutoRecovery::implts_saveOneDoc(const ::rtl::OUString& bError = sal_False; nRetry = 0; } - catch(const css::uno::Exception& ex) + catch(const css::uno::Exception&) { bError = sal_True; @@ -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/svx/source/unodraw/unoshcol.cxx b/svx/source/unodraw/unoshcol.cxx index 868688765e38..1e02c9cbdad9 100644 --- a/svx/source/unodraw/unoshcol.cxx +++ b/svx/source/unodraw/unoshcol.cxx @@ -137,14 +137,14 @@ void SvxShapeCollection::dispose() // notify subclasses to do their dispose disposing(); } - catch(const ::com::sun::star::uno::Exception& e) + catch(const ::com::sun::star::uno::Exception&) { // catch exception and throw again but signal that // the object was disposed. Dispose should be called // only once. mrBHelper.bDisposed = sal_True; mrBHelper.bInDispose = sal_False; - throw e; + throw; } // the values bDispose and bInDisposing must set in this order. |