diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 18:53:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 21:05:55 +0200 |
commit | a514c3966381fdb13f9789745359522ef5509c8b (patch) | |
tree | 411ffee5cad79db1bc09252c9e78120bdef5675a | |
parent | 7d6352b6561c50b7622cfd4314ffcd2766a31108 (diff) |
loplugin:moveparam in lotuswordpro
Change-Id: I122fc96930021dd3127d9c991e7dac3140b612f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123427
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | lotuswordpro/inc/xfilter/xfinputlist.hxx | 4 | ||||
-rw-r--r-- | 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<OUString>& list) + void SetLabels(std::vector<OUString>&& 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; |