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@collabora.co.uk>
diff --git a/writerfilter/source/rtftok/rtfreferenceproperties.cxx b/writerfilter/source/rtftok/rtfreferenceproperties.cxx
index dcb16e4..c2d88cc 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 1c57aeaf..d5121b2 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; }