diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-05-23 02:00:17 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-26 07:31:16 +0000 |
commit | d0e5ed941a7e7b35ccb557ab243fc78d399c3ed5 (patch) | |
tree | 51a781abb78f28fb84160fd9ad5392b36da288c8 /cui | |
parent | a59fc8cbd013ace88f0a462bf807e178a95cffd8 (diff) |
tdf#89329: use unique_ptr for pImpl in optasian
Change-Id: Iaa97d318b8e6b327edd6eecc6a591c55082f7531
Reviewed-on: https://gerrit.libreoffice.org/25330
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/optasian.hxx | 2 | ||||
-rw-r--r-- | cui/source/options/optasian.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cui/source/inc/optasian.hxx b/cui/source/inc/optasian.hxx index d3cb6140365e..5507b260843b 100644 --- a/cui/source/inc/optasian.hxx +++ b/cui/source/inc/optasian.hxx @@ -46,7 +46,7 @@ class SvxAsianLayoutPage : public SfxTabPage VclPtr<Edit> m_pEndED; VclPtr<FixedText> m_pHintFT; - SvxAsianLayoutPage_Impl* pImpl; + std::unique_ptr<SvxAsianLayoutPage_Impl> pImpl; DECL_LINK_TYPED(LanguageHdl, ListBox&, void); DECL_LINK_TYPED(ChangeStandardHdl, Button*, void); diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx index 2b0b33e2847b..8113013b731c 100644 --- a/cui/source/options/optasian.cxx +++ b/cui/source/options/optasian.cxx @@ -156,8 +156,7 @@ SvxAsianLayoutPage::~SvxAsianLayoutPage() void SvxAsianLayoutPage::dispose() { - delete pImpl; - pImpl = nullptr; + pImpl.reset(); m_pCharKerningRB.clear(); m_pCharPunctKerningRB.clear(); m_pNoCompressionRB.clear(); |