[Libreoffice-commits] .: desktop/source extensions/source filter/source framework/source sfx2/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Wed Feb 1 13:53:19 PST 2012
desktop/source/deployment/registry/dp_backend.cxx | 2 +-
extensions/source/ole/oleobjw.cxx | 2 --
filter/source/config/cache/basecontainer.cxx | 2 +-
filter/source/config/cache/filterfactory.cxx | 6 +++---
filter/source/config/cache/typedetection.cxx | 2 +-
filter/source/msfilter/svdfppt.cxx | 2 +-
framework/source/services/modulemanager.cxx | 2 +-
sfx2/source/notify/eventsupplier.cxx | 4 ++--
sfx2/source/view/ipclient.cxx | 4 ++--
9 files changed, 12 insertions(+), 14 deletions(-)
New commits:
commit f25555d66c1c50f81a2694447e8b197eb6ac97f7
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed Feb 1 22:52:43 2012 +0100
Some cppcheck cleaning
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/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx
index 9d203c8..de7abc0 100644
--- a/extensions/source/ole/oleobjw.cxx
+++ b/extensions/source/ole/oleobjw.cxx
@@ -2171,8 +2171,6 @@ Any IUnknownWrapper_Impl::invokeWithDispIdComTlb(FuncDesc& aFuncDesc,
BasicErrorException aBasicErrExp(message, Reference<XInterface>(), nErrorCode, message);
throw InvocationTargetException(message, Reference<XInterface>(), makeAny(aBasicErrExp));
// End add
-
- break;
}
case DISP_E_MEMBERNOTFOUND:
message = OUSTR("[automation bridge]: A function with the name \"")
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/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/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 326c56f..2b9f19f 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -7319,7 +7319,7 @@ void ApplyCellAttributes( const SdrObject* pObj, Reference< XCell >& xCell )
}
}
-void ApplyCellLineAttributes( const SdrObject* pLine, Reference< XTable >& xTable, const std::vector< sal_Int32 > vPositions, sal_Int32 nColumns )
+void ApplyCellLineAttributes( const SdrObject* pLine, Reference< XTable >& xTable, const std::vector< sal_Int32 >& vPositions, sal_Int32 nColumns )
{
try
{
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/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& )
{
More information about the Libreoffice-commits
mailing list