summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-17 09:04:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-17 09:08:16 +0000
commit2ccc311712e39109991ed9b0fd82e9e82ccf3b7d (patch)
tree0b3f0ae0c39d0b28d647f2fb6a47f78113f05740
parenteede420e30b7b69aedd5050d1d335e20c584559a (diff)
coverity#1398821 Uncaught exception
and coverity#1398820 Uncaught exception coverity#1398819 Uncaught exception Change-Id: I68bba7043426ef5bd4146127fa115b31d03b8797
-rw-r--r--filter/source/config/cache/filtercache.cxx11
-rw-r--r--filter/source/config/cache/filtercache.hxx6
2 files changed, 6 insertions, 11 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index 5b0d6dbd495b..c0867ede0db6 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -198,9 +198,8 @@ void FilterCache::takeOver(const FilterCache& rClone)
// <- SAFE ----------------------------------
}
-
void FilterCache::load(EFillState eRequired)
- throw(css::uno::Exception)
+ throw(css::uno::Exception, std::exception)
{
// SAFE -> ----------------------------------
::osl::ResettableMutexGuard aLock(m_aLock);
@@ -240,7 +239,6 @@ void FilterCache::load(EFillState eRequired)
// <- SAFE
}
-
bool FilterCache::isFillState(FilterCache::EFillState eState) const
throw(css::uno::Exception)
{
@@ -1402,12 +1400,11 @@ void FilterCache::impl_load(EFillState eRequiredState)
// <- SAFE
}
-
void FilterCache::impl_loadSet(const css::uno::Reference< css::container::XNameAccess >& xConfig,
EItemType eType ,
EReadOption eOption,
CacheItemList* pCache )
- throw(css::uno::Exception)
+ throw(css::uno::Exception, std::exception)
{
// get access to the right configuration set
OUString sSetName;
@@ -1709,10 +1706,9 @@ CacheItem FilterCache::impl_loadItem(const css::uno::Reference< css::container::
return aItem;
}
-
CacheItemList::iterator FilterCache::impl_loadItemOnDemand( EItemType eType,
const OUString& sItem)
- throw(css::uno::Exception)
+ throw (css::uno::Exception, std::exception)
{
CacheItemList* pList = nullptr;
css::uno::Reference< css::uno::XInterface > xConfig ;
@@ -1783,7 +1779,6 @@ CacheItemList::iterator FilterCache::impl_loadItemOnDemand( EItemType
return pList->find(sItem);
}
-
void FilterCache::impl_saveItem(const css::uno::Reference< css::container::XNameReplace >& xItem,
EItemType eType,
const CacheItem & aItem)
diff --git a/filter/source/config/cache/filtercache.hxx b/filter/source/config/cache/filtercache.hxx
index d2bd7ad8b199..74529e73250b 100644
--- a/filter/source/config/cache/filtercache.hxx
+++ b/filter/source/config/cache/filtercache.hxx
@@ -318,7 +318,7 @@ class FilterCache : public BaseLock
is already fully filled!
*/
void load(EFillState eRequired)
- throw(css::uno::Exception);
+ throw (css::uno::Exception, std::exception);
/** @short return the current fill state of this cache.
@@ -742,7 +742,7 @@ class FilterCache : public BaseLock
EItemType eType ,
EReadOption eOption,
CacheItemList* pCache )
- throw(css::uno::Exception);
+ throw (css::uno::Exception, std::exception);
/** @short read the specified container item from the given configuration set.
@@ -801,7 +801,7 @@ class FilterCache : public BaseLock
*/
CacheItemList::iterator impl_loadItemOnDemand( EItemType eType,
const OUString& sItem)
- throw(css::uno::Exception);
+ throw (css::uno::Exception, std::exception);
/** TODO */