Kaydet (Commit) f58c49b3 authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

üst beccf7c9
......@@ -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&)
{}
}
......
......@@ -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&)
{}
}
......
......@@ -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&)
{}
}
......
......@@ -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&)
{}
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment