diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-02-22 11:40:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-02-22 14:34:31 +0100 |
commit | 70c3d1a25a0ace873ce7fa4b49af416f8fa6f1ff (patch) | |
tree | 8fd1a2196390778109a6d7337e42f802ac0cdf7d /sw/source/filter/inc | |
parent | d261d883b2149b37bdee739ee92bbea11b1fb7a1 (diff) |
ofz#13250 Direct-leak
Change-Id: Idf5984399f2d8bdf4751667e01f170bed15a4443
Reviewed-on: https://gerrit.libreoffice.org/68205
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/inc')
-rw-r--r-- | sw/source/filter/inc/fltshell.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/inc/fltshell.hxx b/sw/source/filter/inc/fltshell.hxx index 7007a5ec1454..ae7fbe949ba0 100644 --- a/sw/source/filter/inc/fltshell.hxx +++ b/sw/source/filter/inc/fltshell.hxx @@ -290,7 +290,7 @@ public: class SW_DLLPUBLIC SwFltTOX : public SfxPoolItem { - SwTOXBase* const pTOXBase; + std::shared_ptr<SwTOXBase> m_xTOXBase; bool bHadBreakItem; // there was a break item BEFORE insertion of the TOX bool bHadPageDescItem; public: @@ -298,7 +298,7 @@ public: // "purely virtual methods" of SfxPoolItem virtual bool operator==(const SfxPoolItem&) const override; virtual SfxPoolItem* Clone(SfxItemPool* = nullptr) const override; - SwTOXBase* GetBase() { return pTOXBase; } + const SwTOXBase& GetBase() { return *m_xTOXBase; } void SetHadBreakItem( bool bVal ) { bHadBreakItem = bVal; } void SetHadPageDescItem( bool bVal ) { bHadPageDescItem = bVal; } bool HadBreakItem() const { return bHadBreakItem; } |