summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/newhelp.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:06:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:25 +0100
commit65e9940d8d13e0e2ac9cac3421955124d1c73390 (patch)
tree089685d7ac1e2978bba363900b02b9f3cc015452 /sfx2/source/appl/newhelp.cxx
parent8d6c8d7fa0a4c56ebcf9d141d8cd99706d756991 (diff)
Clean up C-style casts from pointers to void
Change-Id: I717c260ecdc378a9fd33494f2b98eccec0417d66
Diffstat (limited to 'sfx2/source/appl/newhelp.cxx')
-rw-r--r--sfx2/source/appl/newhelp.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index d73c9e7d9179..aee3adfd646b 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -308,7 +308,7 @@ ContentListBox_Impl::~ContentListBox_Impl()
while ( pEntry )
{
ClearChildren( pEntry );
- delete (ContentEntry_Impl*)pEntry->GetUserData();
+ delete static_cast<ContentEntry_Impl*>(pEntry->GetUserData());
pEntry = GetEntry( nPos++ );
}
}
@@ -341,7 +341,7 @@ void ContentListBox_Impl::ClearChildren( SvTreeListEntry* pParent )
while ( pEntry )
{
ClearChildren( pEntry );
- delete (ContentEntry_Impl*)pEntry->GetUserData();
+ delete static_cast<ContentEntry_Impl*>(pEntry->GetUserData());
pEntry = NextSibling( pEntry );
}
}
@@ -356,7 +356,7 @@ void ContentListBox_Impl::RequestingChildren( SvTreeListEntry* pParent )
{
if ( pParent->GetUserData() )
{
- OUString aTmpURL( ( (ContentEntry_Impl*)pParent->GetUserData() )->aURL );
+ OUString aTmpURL( static_cast<ContentEntry_Impl*>(pParent->GetUserData())->aURL );
std::vector<OUString > aList =
SfxContentHelper::GetHelpTreeViewContents( aTmpURL );
@@ -413,8 +413,8 @@ OUString ContentListBox_Impl::GetSelectEntry() const
{
OUString aRet;
SvTreeListEntry* pEntry = FirstSelected();
- if ( pEntry && !( (ContentEntry_Impl*)pEntry->GetUserData() )->bIsFolder )
- aRet = ( (ContentEntry_Impl*)pEntry->GetUserData() )->aURL;
+ if ( pEntry && !static_cast<ContentEntry_Impl*>(pEntry->GetUserData())->bIsFolder )
+ aRet = static_cast<ContentEntry_Impl*>(pEntry->GetUserData())->aURL;
return aRet;
}