summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 16:54:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 18:23:20 +0200
commit0ff2a432f776d878fc17af5442f14844a9970bf7 (patch)
tree1a428a203626794c618afc68efd7f933f994cfec
parent4dc362917597f0e3b890ef7d8d190749b20abce4 (diff)
loplugin:moveparam in ucbhelper
Change-Id: Id6b03af5ecd662ce2e390bb76819cfe5d2ec05ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123336 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/ucbhelper/interceptedinteraction.hxx2
-rw-r--r--ucbhelper/source/client/interceptedinteraction.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/ucbhelper/interceptedinteraction.hxx b/include/ucbhelper/interceptedinteraction.hxx
index 85699c1d534b..b94f51cf9bb2 100644
--- a/include/ucbhelper/interceptedinteraction.hxx
+++ b/include/ucbhelper/interceptedinteraction.hxx
@@ -160,7 +160,7 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public InterceptedInteraction
@param lInterceptions
the list of intercepted requests.
*/
- void setInterceptions(const ::std::vector< InterceptedRequest >& lInterceptions);
+ void setInterceptions(::std::vector< InterceptedRequest >&& lInterceptions);
/** @short extract a requested continuation from the list of available ones.
diff --git a/ucbhelper/source/client/interceptedinteraction.cxx b/ucbhelper/source/client/interceptedinteraction.cxx
index 682732958aee..96b3fd32cb41 100644
--- a/ucbhelper/source/client/interceptedinteraction.cxx
+++ b/ucbhelper/source/client/interceptedinteraction.cxx
@@ -32,9 +32,9 @@ void InterceptedInteraction::setInterceptedHandler(const css::uno::Reference< cs
m_xInterceptedHandler = xInterceptedHandler;
}
-void InterceptedInteraction::setInterceptions(const ::std::vector< InterceptedRequest >& lInterceptions)
+void InterceptedInteraction::setInterceptions(::std::vector< InterceptedRequest >&& lInterceptions)
{
- m_lInterceptions = lInterceptions;
+ m_lInterceptions = std::move(lInterceptions);
}
InterceptedInteraction::EInterceptionState InterceptedInteraction::intercepted(