Kaydet (Commit) 2b402bbd authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: pass these by value and use std::move()

Change-Id: I9a763eacf8887230ba5d88ac69cb13d0cfb1a7ee
Reviewed-on: https://gerrit.libreoffice.org/61274
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst dbeb2898
......@@ -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))
{
}
......
......@@ -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; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment