summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-18 10:03:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-18 11:12:11 +0100
commitffa9a802ead3ba0c0b958d604037c7f29c806c95 (patch)
tree0e49f2efcd9a8401886387879fe6a049abebcecd
parent3f0011fbc5a2b6df2e8e402077ccdb18b87690c3 (diff)
coverity#1028261 Uncaught exception
Change-Id: I7dd08c182657084ffa635e1960f4d0def6d7a6bb
-rw-r--r--include/sfx2/sidebar/Theme.hxx4
-rw-r--r--sfx2/source/sidebar/Theme.cxx10
2 files changed, 6 insertions, 8 deletions
diff --git a/include/sfx2/sidebar/Theme.hxx b/include/sfx2/sidebar/Theme.hxx
index b0dc72d03554..8d1a9913dab1 100644
--- a/include/sfx2/sidebar/Theme.hxx
+++ b/include/sfx2/sidebar/Theme.hxx
@@ -167,7 +167,9 @@ public:
virtual void SAL_CALL setPropertyValue (
const ::rtl::OUString& rsPropertyName,
const cssu::Any& rValue)
- throw(cssu::RuntimeException, std::exception) SAL_OVERRIDE;
+ throw (css::beans::UnknownPropertyException,
+ css::uno::RuntimeException,
+ std::exception) SAL_OVERRIDE;
virtual cssu::Any SAL_CALL getPropertyValue (
const ::rtl::OUString& rsPropertyName)
throw(css::beans::UnknownPropertyException,
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index 94a2fe9fbbba..e38d3bd082c6 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -473,13 +473,12 @@ Reference<beans::XPropertySetInfo> SAL_CALL Theme::getPropertySetInfo (void)
return Reference<beans::XPropertySetInfo>(this);
}
-
-
-
void SAL_CALL Theme::setPropertyValue (
const ::rtl::OUString& rsPropertyName,
const cssu::Any& rValue)
- throw(cssu::RuntimeException, std::exception)
+ throw (css::beans::UnknownPropertyException,
+ css::uno::RuntimeException,
+ std::exception)
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
@@ -520,9 +519,6 @@ void SAL_CALL Theme::setPropertyValue (
BroadcastPropertyChange(GetChangeListeners(eItem, false), aEvent);
}
-
-
-
Any SAL_CALL Theme::getPropertyValue (
const ::rtl::OUString& rsPropertyName)
throw(css::beans::UnknownPropertyException,