include/ucbhelper/interceptedinteraction.hxx       |    2 +-
 ucbhelper/source/client/interceptedinteraction.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 0ff2a432f776d878fc17af5442f14844a9970bf7
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Sun Oct 10 16:54:30 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Oct 10 18:23:20 2021 +0200

    loplugin:moveparam in ucbhelper
    
    Change-Id: Id6b03af5ecd662ce2e390bb76819cfe5d2ec05ec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123336
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

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(

Reply via email to