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>
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user