summaryrefslogtreecommitdiffstats
path: root/cui/source/options/optopencl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-15 15:47:39 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-09 21:30:12 +0100
commitebd195b2ae254bfc9b52c9c673a57cd3bdf0cad8 (patch)
treedd113b2ff1e58e14d36a1aad5cd96beea0d3476a /cui/source/options/optopencl.cxx
parentvcl: VclPtr conversion in chart2 (diff)
downloadcore-ebd195b2ae254bfc9b52c9c673a57cd3bdf0cad8.tar.gz
core-ebd195b2ae254bfc9b52c9c673a57cd3bdf0cad8.zip
vcl: VclPtr conversion in cui
Change-Id: I8597247296645fe72d5306e35b2ea3c0866d147a
Diffstat (limited to 'cui/source/options/optopencl.cxx')
-rw-r--r--cui/source/options/optopencl.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index 1c7df8c7c879..2323fc465b4e 100644
--- a/cui/source/options/optopencl.cxx
+++ b/cui/source/options/optopencl.cxx
@@ -104,12 +104,17 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
SvxOpenCLTabPage::~SvxOpenCLTabPage()
{
- for ( sal_uInt16 i = 0; i < mpBlackList->GetEntryCount(); ++i )
+ disposeOnce();
+}
+
+void SvxOpenCLTabPage::dispose()
+{
+ for ( sal_uInt16 i = 0; i < mpBlackList->GetEntryCount(); ++i )
delete static_cast<OpenCLConfig::ImplMatcher*>(mpBlackList->GetEntry(i)->GetUserData());
for ( sal_uInt16 i = 0; i < mpWhiteList->GetEntryCount(); ++i )
delete static_cast<OpenCLConfig::ImplMatcher*>(mpWhiteList->GetEntry(i)->GetUserData());
- delete mpBlackList;
- delete mpWhiteList;
+ mpBlackList.disposeAndClear()
+ mpWhiteList.disposeAndClear()
}
SfxTabPage* SvxOpenCLTabPage::Create( vcl::Window* pParent, const SfxItemSet* rAttrSet )