diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-04-02 02:58:46 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-04-02 11:46:11 +0200 |
commit | c34d3eb3eaae4076cf3de5d0cf76fdeaf02c66e8 (patch) | |
tree | 901621f6be24cc1deab4bb6d26e502352e237b8d /sw | |
parent | 0315bdee186674fe5556442ab9f39cce45f72f39 (diff) |
simplify UNO boilerplate
Change-Id: I07538ae4b33a4fa1f07bc6bb4ce6b9af2159e40f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 71a84eb270c1..d36884af0b8b 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -3307,27 +3307,21 @@ sal_Int64 SAL_CALL SwXCellRange::getSomething( const uno::Sequence< sal_Int8 >& TYPEINIT1(SwXCellRange, SwClient); OUString SwXCellRange::getImplementationName(void) throw( uno::RuntimeException, std::exception ) -{ - return OUString("SwXCellRange"); -} + { return OUString("SwXCellRange"); } sal_Bool SwXCellRange::supportsService(const OUString& rServiceName) throw( uno::RuntimeException, std::exception ) -{ - return cppu::supportsService(this, rServiceName); -} + { return cppu::supportsService(this, rServiceName); } -uno::Sequence< OUString > SwXCellRange::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) +uno::Sequence<OUString> SwXCellRange::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) { - uno::Sequence< OUString > aRet(7); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.text.CellRange"; - pArray[1] = "com.sun.star.style.CharacterProperties"; - pArray[2] = "com.sun.star.style.CharacterPropertiesAsian"; - pArray[3] = "com.sun.star.style.CharacterPropertiesComplex"; - pArray[4] = "com.sun.star.style.ParagraphProperties"; - pArray[5] = "com.sun.star.style.ParagraphPropertiesAsian"; - pArray[6] = "com.sun.star.style.ParagraphPropertiesComplex"; - return aRet; + return { + "com.sun.star.text.CellRange", + "com.sun.star.style.CharacterProperties", + "com.sun.star.style.CharacterPropertiesAsian", + "com.sun.star.style.CharacterPropertiesComplex", + "com.sun.star.style.ParagraphProperties", + "com.sun.star.style.ParagraphPropertiesAsian", + "com.sun.star.style.ParagraphPropertiesComplex" }; } SwXCellRange::SwXCellRange(SwUnoCrsr* pCrsr, SwFrmFmt& rFrmFmt, |