diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-20 15:28:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-20 18:57:10 +0200 |
commit | 3077399b156477963a22c6c89c432ff49583e2c3 (patch) | |
tree | 18e624b4fb9e5fda927d36b34d39c13c29144053 /xmloff | |
parent | afc9c4454f7bab73087c28ed454d1fd00968e124 (diff) |
no need to store data separately in SvXMLAttrContainerItem
Change-Id: Idea4289c600a81f5c8dbb389343ef57a9623d11d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119251
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlcnimp.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xmloff/source/core/xmlcnimp.cxx b/xmloff/source/core/xmlcnimp.cxx index b38752e2d213..34010568bd19 100644 --- a/xmloff/source/core/xmlcnimp.cxx +++ b/xmloff/source/core/xmlcnimp.cxx @@ -30,6 +30,18 @@ SvXMLAttrContainerData::SvXMLAttrContainerData(const SvXMLAttrContainerData &rCo { } +SvXMLAttrContainerData& SvXMLAttrContainerData::operator=(const SvXMLAttrContainerData &rCopy) +{ + pimpl.reset( new SvXMLAttrCollection( *rCopy.pimpl ) ); + return *this; +} + +SvXMLAttrContainerData& SvXMLAttrContainerData::operator=(SvXMLAttrContainerData&& rCopy) +{ + pimpl = std::move( rCopy.pimpl ); + return *this; +} + // Need destructor defined (despite it being empty) to avoid "checked_delete" // compiler errors. SvXMLAttrContainerData::~SvXMLAttrContainerData() |