diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-05-06 21:06:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-05-07 09:29:16 +0200 |
commit | e23200dcb47ee64589e464b1c03a6f2ddc2d5ee5 (patch) | |
tree | 63080f677f50c26d89c855c303f71a645af5b8e8 /desktop | |
parent | b37cb3e5dbb145c5a5fed094f02c1bc6dc1d31f8 (diff) |
desktop, lokclipboard: avoid repeating the return type from the declaration
Change-Id: I8c3d5f4dcd442c680823a60d6b5b93137a7adc7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115213
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/lokclipboard.cxx | 5 | ||||
-rw-r--r-- | desktop/source/lib/lokclipboard.hxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/desktop/source/lib/lokclipboard.cxx b/desktop/source/lib/lokclipboard.cxx index 7efaca9abd78..c70c8f0ed750 100644 --- a/desktop/source/lib/lokclipboard.cxx +++ b/desktop/source/lib/lokclipboard.cxx @@ -62,8 +62,7 @@ void LOKClipboardFactory::releaseClipboardForView(int nViewId) uno::Reference<uno::XInterface> SAL_CALL LOKClipboardFactory::createInstanceWithArguments(const Sequence<Any>& /* rArgs */) { - return uno::Reference<uno::XInterface>( - static_cast<cppu::OWeakObject*>(getClipboardForCurView().get())); + return { static_cast<cppu::OWeakObject*>(getClipboardForCurView().get()) }; } LOKClipboard::LOKClipboard() @@ -211,7 +210,7 @@ uno::Any SAL_CALL LOKTransferable::getTransferData(const datatransfer::DataFlavo return m_aContent[i]; } } - return uno::Any(); + return {}; } uno::Sequence<datatransfer::DataFlavor> SAL_CALL LOKTransferable::getTransferDataFlavors() diff --git a/desktop/source/lib/lokclipboard.hxx b/desktop/source/lib/lokclipboard.hxx index 911f38727838..699830756acb 100644 --- a/desktop/source/lib/lokclipboard.hxx +++ b/desktop/source/lib/lokclipboard.hxx @@ -36,7 +36,7 @@ public: /// get an XInterface easily. css::uno::Reference<css::uno::XInterface> getXI() { - return css::uno::Reference<css::uno::XInterface>(static_cast<cppu::OWeakObject*>(this)); + return { static_cast<cppu::OWeakObject*>(this) }; } // XServiceInfo |