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>
This commit is contained in:
Noel Grandin
2021-10-11 21:05:55 +02:00
parent 7d6352b656
commit a514c39663
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;