diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 15:59:20 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 22:14:30 +0100 |
commit | 943f537a1722e6b0835ef999f5371ba0c30fb813 (patch) | |
tree | e131aa00786d33e39222bc91d52a3a911b3ce3a1 | |
parent | e66a55267464d7c5cd996af9b48ebed923eb16d2 (diff) |
simplify SwXCell UNO boilerplate
Change-Id: Ib0057ac18ff6d5db7cf3d19eace5b602778450d8
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 9aa1cdbb4dda..36d2358e532b 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1247,44 +1247,27 @@ SwTableBox* SwXCell::FindBox(SwTable* pTable, SwTableBox* pBox2) // box not found: reset nFndPos pointer nFndPos = NOTFOUND; - return 0; + return nullptr; } OUString SwXCell::getImplementationName(void) throw( uno::RuntimeException, std::exception ) -{ - return OUString("SwXCell"); -} + { return OUString("SwXCell"); } sal_Bool SwXCell::supportsService(const OUString& rServiceName) throw( uno::RuntimeException, std::exception ) -{ - return cppu::supportsService(this, rServiceName); -} + { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SwXCell::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) -{ - uno::Sequence< OUString > aRet(1); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.text.CellProperties"; - return aRet; -} + { return {"com.sun.star.text.CellProperties"}; } OUString SwXTextTableRow::getImplementationName(void) throw( uno::RuntimeException, std::exception ) -{ - return OUString("SwXTextTableRow"); -} + { return OUString("SwXTextTableRow"); } sal_Bool SwXTextTableRow::supportsService(const OUString& rServiceName) throw( uno::RuntimeException, std::exception ) -{ - return cppu::supportsService(this, rServiceName); -} + { return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SwXTextTableRow::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) -{ - uno::Sequence< OUString > aRet(1); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.text.TextTableRow"; - return aRet; -} + { return {"com.sun.star.text.TextTableRow"}; } + TYPEINIT1(SwXTextTableRow, SwClient); SwXTextTableRow::SwXTextTableRow(SwFrmFmt* pFmt, SwTableLine* pLn) : |