diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-27 01:52:46 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-27 17:43:56 +0100 |
commit | 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53 (patch) | |
tree | 74b94d878ae2d5da51b382aa1c9bf413bea367d4 /sw | |
parent | c50e1c442b0be43f27a0f89ef33e524064d93456 (diff) |
reduce boilerplate
Change-Id: I726d824d6b6c42e7e395a99a6b3b6019d91e764d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 9d5a2ad29b8a..5168aa768cf8 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -148,9 +148,7 @@ public: }; OUString SwXStyleFamilies::getImplementationName() throw( uno::RuntimeException, std::exception ) -{ - return OUString("SwXStyleFamilies"); -} + { return {"SwXStyleFamilies"}; } sal_Bool SwXStyleFamilies::supportsService(const OUString& rServiceName) throw( uno::RuntimeException, std::exception ) { @@ -158,10 +156,7 @@ sal_Bool SwXStyleFamilies::supportsService(const OUString& rServiceName) throw( } uno::Sequence< OUString > SwXStyleFamilies::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) -{ - uno::Sequence<OUString> aRet { "com.sun.star.style.StyleFamilies" }; - return aRet; -} + { return { "com.sun.star.style.StyleFamilies" }; } SwXStyleFamilies::SwXStyleFamilies(SwDocShell& rDocShell) : SwUnoCollection(rDocShell.GetDoc()), |