diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-19 15:44:12 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-01-21 15:06:47 +0100 |
commit | 5776d219db28b795acb952e9728cc9502403bcb8 (patch) | |
tree | a3d26cede5460679d5481a136c56167fb2817351 /cui | |
parent | 3ac287a705fdf801fd1f191fcbc2d74fc9ff2ffe (diff) |
more ScopedVclPtr for dialogs
Change-Id: I0f19a0c1e312843bee0ee5c9939831918ddc2da7
Reviewed-on: https://gerrit.libreoffice.org/48198
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index db126849cb4c..95e611a313cb 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -489,8 +489,9 @@ IMPL_LINK( SpellDialog, CheckGrammarHdl, Button*, pBox, void ) void SpellDialog::StartSpellOptDlg_Impl() { SfxItemSet aSet( SfxGetpApp()->GetPool(), svl::Items<SID_AUTOSPELL_CHECK,SID_AUTOSPELL_CHECK>{}); - VclPtr<SfxSingleTabDialog> pDlg( - VclPtr<SfxSingleTabDialog>::Create(this, aSet, "SpellOptionsDialog", "cui/ui/spelloptionsdialog.ui")); + ScopedVclPtr<SfxSingleTabDialog> pDlg( + VclPtr<SfxSingleTabDialog>::Create( + this, aSet, "SpellOptionsDialog", "cui/ui/spelloptionsdialog.ui")); VclPtr<SfxTabPage> pPage = SvxLinguTabPage::Create( pDlg->get_content_area(), &aSet ); static_cast<SvxLinguTabPage*>(pPage.get())->HideGroups( GROUP_MODULES ); pDlg->SetTabPage( pPage ); |