diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 16:33:56 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 22:14:32 +0100 |
commit | 212a0bca30ebcfa312901be1370374419eb03a13 (patch) | |
tree | 738736d0f191f82bda6de205ccd2db26c3b720dd | |
parent | e2b58f2f586dd33229a53795159a11d8691f633f (diff) |
be honest and throw exceptions when unimplemented
Change-Id: I38bc4c15eabcbcfaf7183cb78e5f924986c0365f
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 5173b7666d89..47d22ac49e9b 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1424,29 +1424,19 @@ uno::Any SwXTextTableRow::getPropertyValue(const OUString& rPropertyName) throw( } void SwXTextTableRow::addPropertyChangeListener(const OUString& /*rPropertyName*/, const uno::Reference< beans::XPropertyChangeListener > & /*xListener*/) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) -{ - OSL_FAIL("not implemented"); -} + { throw uno::RuntimeException("not implemented", static_cast<cppu::OWeakObject*>(this)); }; void SwXTextTableRow::removePropertyChangeListener(const OUString& /*rPropertyName*/, const uno::Reference< beans::XPropertyChangeListener > & /*xListener*/) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) -{ - OSL_FAIL("not implemented"); -} + { throw uno::RuntimeException("not implemented", static_cast<cppu::OWeakObject*>(this)); }; void SwXTextTableRow::addVetoableChangeListener(const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener > & /*xListener*/) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) -{ - OSL_FAIL("not implemented"); -} + { throw uno::RuntimeException("not implemented", static_cast<cppu::OWeakObject*>(this)); }; void SwXTextTableRow::removeVetoableChangeListener(const OUString& /*rPropertyName*/, const uno::Reference< beans::XVetoableChangeListener > & /*xListener*/) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) -{ - OSL_FAIL("not implemented"); -} + { throw uno::RuntimeException("not implemented", static_cast<cppu::OWeakObject*>(this)); }; void SwXTextTableRow::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) -{ - ClientModify(this, pOld, pNew); -} + { ClientModify(this, pOld, pNew); } void SwXTextTableRow::SwClientNotify(const SwModify& rModify, const SfxHint& rHint) { |