diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 16:40:47 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-28 22:14:33 +0100 |
commit | d28108fe2b85d1964d28846116dbdf6cfba24e94 (patch) | |
tree | 883226e54e0ab7b81346bdd2ea55da17afed2840 | |
parent | 99b1d7737a866a554c9746787e9e405d1719d802 (diff) |
simplify UNO boilerplate
Change-Id: Icb093f6db5df4dd4094c49202fce54de524aef94
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 0c6132a32649..8d72ef533a0f 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -1474,13 +1474,8 @@ SwDoc* SwXTextTableCursor::GetDoc() { return GetFrmFmt()->Ge const SwUnoCrsr* SwXTextTableCursor::GetCrsr() const { return static_cast<const SwUnoCrsr*>(aCrsrDepend.GetRegisteredIn()); } SwUnoCrsr* SwXTextTableCursor::GetCrsr() { return static_cast<SwUnoCrsr*>(aCrsrDepend.GetRegisteredIn()); } -uno::Sequence< OUString > SwXTextTableCursor::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) -{ - uno::Sequence< OUString > aRet(1); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.text.TextTableCursor"; - return aRet; -} +uno::Sequence<OUString> SwXTextTableCursor::getSupportedServiceNames(void) throw( uno::RuntimeException, std::exception ) + { return {"com.sun.star.text.TextTableCursor"}; } SwXTextTableCursor::SwXTextTableCursor(SwFrmFmt* pFmt, SwTableBox* pBox) : SwClient(pFmt), |