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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user