summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-17 10:50:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-13 19:11:49 +0200
commit1743d74e87745a26043642a06dc8a57b1af29740 (patch)
tree86354c464ed2e51bf940b58333844c0ad0670d01 /emfio
parenta0b9a7e7f0d14d0f121e54cb8979074bc5dfbe38 (diff)
clang-tidy modernize-pass-by-value in various
Change-Id: Ie091b22bd77d4e1fbff46545bc86c12f1dbafcfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138171 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'emfio')
-rw-r--r--emfio/source/emfuno/xemfparser.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/emfio/source/emfuno/xemfparser.cxx b/emfio/source/emfuno/xemfparser.cxx
index d5342edf747f..55b96e31c222 100644
--- a/emfio/source/emfuno/xemfparser.cxx
+++ b/emfio/source/emfuno/xemfparser.cxx
@@ -24,6 +24,7 @@
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/supportsservice.hxx>
+#include <utility>
#include <vcl/outdev.hxx>
#include <vcl/svapp.hxx>
#include <vcl/wmfexternal.hxx>
@@ -50,7 +51,7 @@ namespace emfio::emfreader
public:
explicit XEmfParser(
- uno::Reference< uno::XComponentContext > const & context);
+ uno::Reference< uno::XComponentContext > context);
XEmfParser(const XEmfParser&) = delete;
XEmfParser& operator=(const XEmfParser&) = delete;
@@ -70,8 +71,8 @@ namespace emfio::emfreader
}
XEmfParser::XEmfParser(
- uno::Reference< uno::XComponentContext > const & context):
- context_(context)
+ uno::Reference< uno::XComponentContext > context):
+ context_(std::move(context))
{
}