diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-07-14 19:38:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-15 17:27:18 +0200 |
commit | 414a907d11d931b68a0b320d646c3ca06e58052c (patch) | |
tree | 24c6bf61cd65b4c89adc7c3e0cdaa609665b1dc9 /sc/source/filter/xml/xmlimprt.hxx | |
parent | 0d8eae93766dec97b15cde55dea33df50b6d9505 (diff) |
use unique_ptr for ScMyLabelRange
Change-Id: Ib54d28024d5f853c6f54600222be7a4285873a9b
Reviewed-on: https://gerrit.libreoffice.org/39986
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/xml/xmlimprt.hxx')
-rw-r--r-- | sc/source/filter/xml/xmlimprt.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx index 945e2abc010f..832dbb395b72 100644 --- a/sc/source/filter/xml/xmlimprt.hxx +++ b/sc/source/filter/xml/xmlimprt.hxx @@ -774,7 +774,7 @@ struct ScMyLabelRange bool bColumnOrientation; }; -typedef std::list<const ScMyLabelRange*> ScMyLabelRanges; +typedef std::list< std::unique_ptr<const ScMyLabelRange> > ScMyLabelRanges; struct ScMyImportValidation { @@ -1103,10 +1103,10 @@ public: void AddNamedExpression(SCTAB nTab, ScMyNamedExpression* pNamedExp); - void AddLabelRange(const ScMyLabelRange* pMyLabelRange) { + void AddLabelRange(std::unique_ptr<const ScMyLabelRange> pMyLabelRange) { if (!pMyLabelRanges) pMyLabelRanges = new ScMyLabelRanges; - pMyLabelRanges->push_back(pMyLabelRange); } + pMyLabelRanges->push_back(std::move(pMyLabelRange)); } void AddValidation(const ScMyImportValidation& rValidation) { if (!pValidations) |