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 { 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; }