diff options
author | Arnold Dumas <arnold@dumas.at> | 2017-02-12 10:51:31 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-12 17:05:49 +0000 |
commit | ff2927095ed64851f4418cc8daa534e2581da537 (patch) | |
tree | 75bf5cc0009d89eb38eb024aad7672990ba309d6 /sw/source | |
parent | 49d7bdea17f6468b0c5c9f425f4432e2ad7e1ace (diff) |
tdf#89329: Use unique_ptr for pImpl in optcomp
Change-Id: I0f6ec9c2bab27dc4c6fe5e94bd3c05319f246b35
Reviewed-on: https://gerrit.libreoffice.org/34171
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/config/optcomp.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/optcomp.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/config/optcomp.cxx b/sw/source/ui/config/optcomp.cxx index 59d71431ba47..3dc5d377ace0 100644 --- a/sw/source/ui/config/optcomp.cxx +++ b/sw/source/ui/config/optcomp.cxx @@ -92,7 +92,7 @@ SwCompatibilityOptPage::~SwCompatibilityOptPage() void SwCompatibilityOptPage::dispose() { - delete m_pImpl; + m_pImpl.reset(); m_pMain.clear(); m_pFormattingLB.clear(); m_pOptionsLB.clear(); diff --git a/sw/source/uibase/inc/optcomp.hxx b/sw/source/uibase/inc/optcomp.hxx index 370abbd660ec..83d74baa436c 100644 --- a/sw/source/uibase/inc/optcomp.hxx +++ b/sw/source/uibase/inc/optcomp.hxx @@ -45,7 +45,7 @@ private: // shell of the current document SwWrtShell* m_pWrtShell; // impl object - SwCompatibilityOptPage_Impl* m_pImpl; + std::unique_ptr<SwCompatibilityOptPage_Impl> m_pImpl; // saved options after "Reset"; used in "FillItemSet" for comparison sal_uLong m_nSavedOptions; |