summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 16:52:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 18:25:02 +0200
commitc954552a8255188779b9021cc9acaa13c5e3c679 (patch)
tree24cb5e01c6472d6fdfdefbb1140042637ec6ef4c
parentloplugin:moveparam in svl (diff)
downloadcore-c954552a8255188779b9021cc9acaa13c5e3c679.tar.gz
core-c954552a8255188779b9021cc9acaa13c5e3c679.zip
loplugin:moveparam in comphelper
Change-Id: I109d8507890460c5a479af2a5b94f905197b08d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123335 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--comphelper/source/misc/simplefileaccessinteraction.cxx2
-rw-r--r--comphelper/source/misc/stillreadwriteinteraction.cxx2
-rw-r--r--include/comphelper/traceevent.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/source/misc/simplefileaccessinteraction.cxx b/comphelper/source/misc/simplefileaccessinteraction.cxx
index 2840e3dad0e7..48c99598fac5 100644
--- a/comphelper/source/misc/simplefileaccessinteraction.cxx
+++ b/comphelper/source/misc/simplefileaccessinteraction.cxx
@@ -66,7 +66,7 @@ SimpleFileAccessInteraction::SimpleFileAccessInteraction(
lInterceptions.push_back(aInterceptedRequest);
setInterceptedHandler(xHandler);
- setInterceptions(lInterceptions);
+ setInterceptions(std::move(lInterceptions));
}
SimpleFileAccessInteraction::~SimpleFileAccessInteraction() {}
diff --git a/comphelper/source/misc/stillreadwriteinteraction.cxx b/comphelper/source/misc/stillreadwriteinteraction.cxx
index 0efec31b160b..d9333f389166 100644
--- a/comphelper/source/misc/stillreadwriteinteraction.cxx
+++ b/comphelper/source/misc/stillreadwriteinteraction.cxx
@@ -63,7 +63,7 @@ StillReadWriteInteraction::StillReadWriteInteraction(const css::uno::Reference<
lInterceptions.push_back(aInterceptedRequest);
setInterceptedHandler(xHandler);
- setInterceptions(lInterceptions);
+ setInterceptions(std::move(lInterceptions));
}
void StillReadWriteInteraction::resetInterceptions()
diff --git a/include/comphelper/traceevent.hxx b/include/comphelper/traceevent.hxx
index 0bf4428b73ac..a111be0b9e63 100644
--- a/include/comphelper/traceevent.hxx
+++ b/include/comphelper/traceevent.hxx
@@ -91,7 +91,7 @@ protected:
{
}
- TraceEvent(std::map<OUString, OUString> aArgs)
+ TraceEvent(const std::map<OUString, OUString>& aArgs)
: TraceEvent(createArgsString(aArgs))
{
}