summaryrefslogtreecommitdiffstats
path: root/cui/source/options/optopencl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:00:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:19 +0100
commit170012948c063521499ab685906354f184ac33be (patch)
treea13e756e8e85b0fb2b8795f5d0f60bed98836b22 /cui/source/options/optopencl.cxx
parentClean up C-style casts from pointers to void (diff)
downloadcore-170012948c063521499ab685906354f184ac33be.tar.gz
core-170012948c063521499ab685906354f184ac33be.zip
Clean up C-style casts from pointers to void
Change-Id: I544fc582d375d1e49f84309e722f669d734cf029
Diffstat (limited to 'cui/source/options/optopencl.cxx')
-rw-r--r--cui/source/options/optopencl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index c43af1c7e335..1c7df8c7c879 100644
--- a/cui/source/options/optopencl.cxx
+++ b/cui/source/options/optopencl.cxx
@@ -105,9 +105,9 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
SvxOpenCLTabPage::~SvxOpenCLTabPage()
{
for ( sal_uInt16 i = 0; i < mpBlackList->GetEntryCount(); ++i )
- delete (OpenCLConfig::ImplMatcher*)mpBlackList->GetEntry(i)->GetUserData();
+ delete static_cast<OpenCLConfig::ImplMatcher*>(mpBlackList->GetEntry(i)->GetUserData());
for ( sal_uInt16 i = 0; i < mpWhiteList->GetEntryCount(); ++i )
- delete (OpenCLConfig::ImplMatcher*)mpWhiteList->GetEntry(i)->GetUserData();
+ delete static_cast<OpenCLConfig::ImplMatcher*>(mpWhiteList->GetEntry(i)->GetUserData());
delete mpBlackList;
delete mpWhiteList;
}
@@ -153,7 +153,7 @@ void fillListBox(SvSimpleTable* pListBox, const OpenCLConfig::ImplMatcherSet& rS
pListBox->SetUpdateMode(false);
// kill added UserData to treeitem
for ( sal_uInt16 i = 0; i < pListBox->GetEntryCount(); ++i )
- delete (OpenCLConfig::ImplMatcher*)pListBox->GetEntry(i)->GetUserData();
+ delete static_cast<OpenCLConfig::ImplMatcher*>(pListBox->GetEntry(i)->GetUserData());
pListBox->Clear();
for (auto i = rSet.cbegin(); i != rSet.cend(); ++i)
@@ -278,7 +278,7 @@ const OpenCLConfig::ImplMatcher& findCurrentEntry(OpenCLConfig::ImplMatcherSet&
{
SvTreeListEntry* pEntry = pListBox->FirstSelected() ;
- const OpenCLConfig::ImplMatcher* pSet = (OpenCLConfig::ImplMatcher*)pEntry->GetUserData();
+ const OpenCLConfig::ImplMatcher* pSet = static_cast<OpenCLConfig::ImplMatcher*>(pEntry->GetUserData());
for (auto i = rSet.cbegin(); i != rSet.cend(); ++i)
{