diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-29 00:59:47 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-30 23:17:30 +0200 |
commit | ec1901ef85adb3c1ebf2847d5ecd1d2a76a08f47 (patch) | |
tree | 19ddfd587093875ee9b87308ce29c075efe1e746 /sw | |
parent | 0ffa1e835b68a627c4238eef9d3829282a544801 (diff) |
reduce UNO boilerplate
Change-Id: I7fa6a5fcd8bf1ac82d089a1db0e0ae40e4700bf8
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 11081fc18ec9..6fda68a91727 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -4463,32 +4463,22 @@ void SwXCellRange::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) // SwXTableRows OUString SwXTableRows::getImplementationName(void) throw( uno::RuntimeException, std::exception ) -{ - return OUString("SwXTableRows"); -} + { return OUString("SwXTableRows"); } sal_Bool SwXTableRows::supportsService(const OUString& rServiceName) throw( uno::RuntimeException, std::exception ) -{ - return cppu::supportsService(this, rServiceName); -} + { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SwXTableRows::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) -{ - uno::Sequence< OUString > aRet(1); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.text.TableRows"; - return aRet; -} + { return { "com.sun.star.text.TableRows" }; } + TYPEINIT1(SwXTableRows, SwClient); SwXTableRows::SwXTableRows(SwFrmFmt& rFrmFmt) : SwClient(&rFrmFmt) -{ -} +{ } SwXTableRows::~SwXTableRows() -{ -} +{ } sal_Int32 SwXTableRows::getCount(void) throw( uno::RuntimeException, std::exception ) { |