diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 17:15:52 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 22:14:38 +0100 |
commit | 9b6086bb33a39cd6b29a7035a139ca4208b0ec46 (patch) | |
tree | b267f8db8350fa69a4b6d8e3795dbb2f8abe713d /sw | |
parent | 3f97e6e03ac5180bfdbdaa768480bc6bc3ee5664 (diff) |
be honest and throw exceptions when unimplemented
Change-Id: I57cf702bda6be4e04f2bff8202e3b3e20286f872
Diffstat (limited to 'sw')
-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 673b882e1d13..b3fa1a524c4f 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1801,29 +1801,19 @@ uno::Any SwXTextTableCursor::getPropertyValue(const OUString& rPropertyName) } void SwXTextTableCursor::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 SwXTextTableCursor::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 SwXTextTableCursor::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 SwXTextTableCursor::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 SwXTextTableCursor::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) -{ - ClientModify(this, pOld, pNew); -} + { ClientModify(this, pOld, pNew); } class SwXTextTable::Impl { |