diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-02-15 10:08:50 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-02-15 12:34:52 +0100 |
commit | 31f4400ea5d41ed11b3aef114950d7b424df6a26 (patch) | |
tree | 3c207e9c87956035786594076fa8da0dc745fc78 /sw | |
parent | dc8ebf205c3231ffc4d6737b53cee396c2ac0bfd (diff) |
writerfilter: can use std::move() here
Change-Id: I48980ae44cd68b9526d915f877a37f6a559910e5
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/rtfexportfilter.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/rtfexportfilter.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/rtfexportfilter.cxx b/sw/source/filter/ww8/rtfexportfilter.cxx index 5da1c7329838..a88b17951836 100644 --- a/sw/source/filter/ww8/rtfexportfilter.cxx +++ b/sw/source/filter/ww8/rtfexportfilter.cxx @@ -31,8 +31,8 @@ using namespace ::com::sun::star; -RtfExportFilter::RtfExportFilter(const uno::Reference< uno::XComponentContext >& xCtx) - : m_xCtx(xCtx) +RtfExportFilter::RtfExportFilter(uno::Reference<uno::XComponentContext> xCtx) + : m_xCtx(std::move(xCtx)) { } diff --git a/sw/source/filter/ww8/rtfexportfilter.hxx b/sw/source/filter/ww8/rtfexportfilter.hxx index 842ac77738af..473c9b2680fc 100644 --- a/sw/source/filter/ww8/rtfexportfilter.hxx +++ b/sw/source/filter/ww8/rtfexportfilter.hxx @@ -47,7 +47,7 @@ protected: css::uno::Reference<css::uno::XComponentContext> m_xCtx; css::uno::Reference<css::lang::XComponent> m_xSrcDoc; public: - explicit RtfExportFilter(const css::uno::Reference<css::uno::XComponentContext>& xCtx); + explicit RtfExportFilter(css::uno::Reference<css::uno::XComponentContext> xCtx); virtual ~RtfExportFilter() override; // XFilter |