diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2018-07-11 21:53:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-13 08:38:57 +0200 |
commit | ddef60b9c26b1d2990c6c49dbbda73e7831f21fb (patch) | |
tree | 011cbead2168b4620536d840a9ff983f20b1dcdd /include/svx | |
parent | 1a8435a23e84f3ceeee580eb9d4404a738d98888 (diff) |
pass SvxFieldData around by std::unique_ptr
Change-Id: I9c826547d348000dd6c80e45d833e048caae0ed8
Reviewed-on: https://gerrit.libreoffice.org/57308
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/ClassificationField.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/ClassificationField.hxx b/include/svx/ClassificationField.hxx index b8e6ff71d382..79e30cff094a 100644 --- a/include/svx/ClassificationField.hxx +++ b/include/svx/ClassificationField.hxx @@ -14,6 +14,7 @@ #include <sal/config.h> #include <svx/svxdllapi.h> #include <editeng/flditem.hxx> +#include <o3tl/make_unique.hxx> namespace svx { @@ -74,9 +75,9 @@ public: , msIdentifier(sIdentifier) {} - tools::SvRef<SvxFieldData> Clone() const override + std::unique_ptr<SvxFieldData> Clone() const override { - return new ClassificationField(meType, msDescription, msFullClassName, msIdentifier); + return o3tl::make_unique<ClassificationField>(meType, msDescription, msFullClassName, msIdentifier); } bool operator==(const SvxFieldData& rOther) const override |