diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-06-03 10:02:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-06-03 14:28:50 +0200 |
commit | b30839cecd25b9f6f56fcf4b3d3e90ab23a3d0b7 (patch) | |
tree | 6a29596eae72af659b8759343fbf35414609d0e0 /include | |
parent | 9e6a2a6eb3c959bd9ca3fc3a24ae089489383a69 (diff) |
use std::make_unique instead of new
Change-Id: I267b82dd573fc8bd30e1c5d47e9b1f2e98c2b412
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116645
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/svxrtf.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx index d19c542885bf..d322b1823e2b 100644 --- a/include/editeng/svxrtf.hxx +++ b/include/editeng/svxrtf.hxx @@ -304,6 +304,9 @@ class SvxRTFItemStackType SvxRTFItemStackType( SfxItemPool&, const sal_uInt16* pWhichRange, const EditPosition& ); + static std::unique_ptr<SvxRTFItemStackType> createSvxRTFItemStackType( + SfxItemPool&, const sal_uInt16* pWhichRange, const EditPosition&); + void Add(std::unique_ptr<SvxRTFItemStackType>); void Compress( const SvxRTFParser& ); void DropChildList(); |