[Libreoffice-commits] core.git: writerfilter/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Oct 3 07:06:42 UTC 2018


 writerfilter/source/rtftok/rtfreferenceproperties.cxx |   10 +++++-----
 writerfilter/source/rtftok/rtfreferenceproperties.hxx |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 2b402bbd34624c4759fa411c98bb60da1dd11e76
Author:     Miklos Vajna <vmiklos at collabora.co.uk>
AuthorDate: Tue Oct 2 22:06:25 2018 +0200
Commit:     Miklos Vajna <vmiklos at collabora.co.uk>
CommitDate: Wed Oct 3 09:06:19 2018 +0200

    writerfilter: pass these by value and use std::move()
    
    Change-Id: I9a763eacf8887230ba5d88ac69cb13d0cfb1a7ee
    Reviewed-on: https://gerrit.libreoffice.org/61274
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/writerfilter/source/rtftok/rtfreferenceproperties.cxx b/writerfilter/source/rtftok/rtfreferenceproperties.cxx
index dcb16e4fa53a..c2d88ccb9194 100644
--- a/writerfilter/source/rtftok/rtfreferenceproperties.cxx
+++ b/writerfilter/source/rtftok/rtfreferenceproperties.cxx
@@ -13,14 +13,14 @@ namespace writerfilter
 {
 namespace rtftok
 {
-RTFReferenceProperties::RTFReferenceProperties(const RTFSprms& rAttributes, const RTFSprms& rSprms)
-    : m_aAttributes(rAttributes)
-    , m_aSprms(rSprms)
+RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms)
+    : m_aAttributes(std::move(aAttributes))
+    , m_aSprms(std::move(aSprms))
 {
 }
 
-RTFReferenceProperties::RTFReferenceProperties(const RTFSprms& rAttributes)
-    : m_aAttributes(rAttributes)
+RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes)
+    : m_aAttributes(std::move(aAttributes))
 {
 }
 
diff --git a/writerfilter/source/rtftok/rtfreferenceproperties.hxx b/writerfilter/source/rtftok/rtfreferenceproperties.hxx
index 1c57aeaf80a9..d5121b26ad2c 100644
--- a/writerfilter/source/rtftok/rtfreferenceproperties.hxx
+++ b/writerfilter/source/rtftok/rtfreferenceproperties.hxx
@@ -20,8 +20,8 @@ namespace rtftok
 class RTFReferenceProperties : public writerfilter::Reference<Properties>
 {
 public:
-    RTFReferenceProperties(const RTFSprms& rAttributes, const RTFSprms& rSprms);
-    explicit RTFReferenceProperties(const RTFSprms& rAttributes);
+    RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms);
+    explicit RTFReferenceProperties(RTFSprms aAttributes);
     ~RTFReferenceProperties() override;
     void resolve(Properties& rHandler) override;
     RTFSprms& getAttributes() { return m_aAttributes; }


More information about the Libreoffice-commits mailing list