diff options
Diffstat (limited to 'lotuswordpro')
-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; |