summaryrefslogtreecommitdiff
path: root/include/editeng/unotext.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 11:14:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 07:50:46 +0100
commitd69d9cdc40d7a2f3d80688ab519fcf4c932b8f7b (patch)
treea0df01c7c885da35c068fed5be5a74f1597a0436 /include/editeng/unotext.hxx
parentcb226e26cbdfe29bc97aba101d3d524f13482876 (diff)
loplugin:useuniqueptr in SvxUnoTextRangeBase
Change-Id: I2f416e415ec388d1fac334b997f25427f6c1750f Reviewed-on: https://gerrit.libreoffice.org/49175 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/unotext.hxx')
-rw-r--r--include/editeng/unotext.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx
index 514f83e8b6dd..1e15f8d5e033 100644
--- a/include/editeng/unotext.hxx
+++ b/include/editeng/unotext.hxx
@@ -253,7 +253,7 @@ class EDITENG_DLLPUBLIC SvxUnoTextRangeBase : public css::text::XTextRange,
const SvxItemPropertySet* mpPropSet;
protected:
- SvxEditSource* mpEditSource;
+ std::unique_ptr<SvxEditSource> mpEditSource;
ESelection maSelection;
/// @throws css::beans::UnknownPropertyException
@@ -327,7 +327,7 @@ public:
//const SfxItemPropertyMapEntry* getPropertyMapEntries() const throw() { return maPropSet.getPropertyMapEntries(); }
const SvxItemPropertySet* getPropertySet() const throw() { return mpPropSet; }
- SvxEditSource* GetEditSource() const throw() { return mpEditSource; }
+ SvxEditSource* GetEditSource() const throw() { return mpEditSource.get(); }
static bool SetPropertyValueHelper( const SfxItemPropertySimpleEntry* pMap, const css::uno::Any& aValue, SfxItemSet& rNewSet, const ESelection* pSelection = nullptr, SvxEditSource* pEditSource = nullptr );
/// @throws css::uno::RuntimeException