summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-02-02 22:53:48 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-02-02 22:55:17 +0100
commitf58c49b39a7c6a8490033360f78768ee0a26f167 (patch)
treed73b74cdf77c81c6b310c66dff100d5e7a66e432 /framework
parentbeccf7c9dd4966347fa31e11922fd73bd40dfeb9 (diff)
Some cppcheck cleaning
Diffstat (limited to 'framework')
-rw-r--r--framework/source/accelerators/globalacceleratorconfiguration.cxx4
-rw-r--r--framework/source/accelerators/moduleacceleratorconfiguration.cxx4
-rw-r--r--framework/source/accelerators/presethandler.cxx12
-rw-r--r--framework/source/services/autorecovery.cxx10
4 files changed, 15 insertions, 15 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&)
{}