From a514c3966381fdb13f9789745359522ef5509c8b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Oct 2021 18:53:13 +0200 Subject: [PATCH] loplugin:moveparam in lotuswordpro Change-Id: I122fc96930021dd3127d9c991e7dac3140b612f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123427 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lotuswordpro/inc/xfilter/xfinputlist.hxx | 4 ++-- lotuswordpro/source/filter/lwpmarker.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lotuswordpro/inc/xfilter/xfinputlist.hxx b/lotuswordpro/inc/xfilter/xfinputlist.hxx index 8a5a70e1c13d..6e9719f21155 100644 --- a/lotuswordpro/inc/xfilter/xfinputlist.hxx +++ b/lotuswordpro/inc/xfilter/xfinputlist.hxx @@ -76,9 +76,9 @@ public: m_strName = sName; } - void SetLabels(const std::vector& list) + void SetLabels(std::vector&& list) { - m_list=list; + m_list=std::move(list); } virtual void ToXml(IXFStream *pStrm) override; diff --git a/lotuswordpro/source/filter/lwpmarker.cxx b/lotuswordpro/source/filter/lwpmarker.cxx index 653121532a09..86591fd8917e 100644 --- a/lotuswordpro/source/filter/lwpmarker.cxx +++ b/lotuswordpro/source/filter/lwpmarker.cxx @@ -257,7 +257,7 @@ void LwpCHBlkMarker::ProcessKeylist(XFContentContainer* pXFPara,sal_uInt8 nType) EnumAllKeywords();//traverse the proplist to find all keywords XFInputList* pList = new XFInputList; pList->SetName(LwpDLNFPVList::m_Name.str()); - pList->SetLabels(m_Keylist); + pList->SetLabels(std::vector(m_Keylist)); pXFPara->Add(pList); } // else skip MARKER_END @@ -269,7 +269,7 @@ void LwpCHBlkMarker::ProcessKeylist(XFContentContainer* pXFPara,sal_uInt8 nType) EnumAllKeywords(); XFInputList* pList = new XFInputList; pList->SetName(LwpDLNFPVList::m_Name.str()); - pList->SetLabels(m_Keylist); + pList->SetLabels(std::vector(m_Keylist)); pXFPara->Add(pList); XFHolderStart* pHolder= new XFHolderStart;