[Libreoffice-commits] core.git: include/xmloff

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Jul 26 19:04:58 UTC 2021


 include/xmloff/xmlictxt.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d115205bc05209a32d8d47bae853424bef4191b1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 26 18:58:17 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jul 26 21:04:24 2021 +0200

    cid#1489450 Big parameter passed by value
    
    Change-Id: I727922562f2655ef9dcc8f9deb866e7f39765f9c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119528
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/xmloff/xmlictxt.hxx b/include/xmloff/xmlictxt.hxx
index 885be2ead5ab..0b25efe97e5f 100644
--- a/include/xmloff/xmlictxt.hxx
+++ b/include/xmloff/xmlictxt.hxx
@@ -52,7 +52,7 @@ class XMLOFF_DLLPUBLIC SvXMLImportContext : public css::xml::sax::XFastContextHa
     std::optional<SvXMLNamespaceMap>  m_xRewindMap;
 
     SAL_DLLPRIVATE std::optional<SvXMLNamespaceMap> TakeRewindMap() { return std::move(m_xRewindMap); }
-    SAL_DLLPRIVATE void PutRewindMap(std::optional<SvXMLNamespaceMap> p) { m_xRewindMap = std::move(p); }
+    SAL_DLLPRIVATE void PutRewindMap(std::optional<SvXMLNamespaceMap>&& p) { m_xRewindMap = std::move(p); }
 
 protected:
 


More information about the Libreoffice-commits mailing list