diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-03 15:39:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-04 12:23:52 +0200 |
commit | d038d1f5ee0d24a5ad739d5e91015f90fd09b02e (patch) | |
tree | 3d541e7ce009cb64c3fb7d2d7b1918abfafe3aec /include | |
parent | 90df301f6d4e7ab0b660d9e39c6fe639ef5ae348 (diff) |
coverity#1435273 Resource leak in object
Change-Id: I781b2d6f6b550e5b381c041a27d282c4dca9d6dd
Reviewed-on: https://gerrit.libreoffice.org/53805
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/tabdlg.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx index c3d6d6ec2cf6..2d9b449112d5 100644 --- a/include/sfx2/tabdlg.hxx +++ b/include/sfx2/tabdlg.hxx @@ -254,7 +254,7 @@ protected: virtual void RefreshInputSet(); virtual void PageCreated(const OString &rName, SfxTabPage &rPage); - SfxItemSet* m_pExampleSet; + std::unique_ptr<SfxItemSet> m_xExampleSet; SfxItemSet* GetInputSetImpl(); SfxTabPage* GetTabPage(const OString& rPageId) const; @@ -294,7 +294,7 @@ public: short execute(); - const SfxItemSet* GetExampleSet() const { return m_pExampleSet; } + const SfxItemSet* GetExampleSet() const { return m_xExampleSet.get(); } SAL_DLLPRIVATE void Start_Impl(); }; |