summaryrefslogtreecommitdiff
path: root/cui/source/tabpages
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-11 12:49:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-11 12:49:24 +0200
commit471a680739dff66618f6879b085adfa8b5eb37a2 (patch)
treeeb63cb119d3b9768518469c2d6037ea1e5a055d5 /cui/source/tabpages
parent7e61f39f894be185cb8bb3f51034d45556672c0e (diff)
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: If95a985badc34d3789e82fb576836730aff9cefc
Diffstat (limited to 'cui/source/tabpages')
-rw-r--r--cui/source/tabpages/tpgradnt.cxx4
-rw-r--r--cui/source/tabpages/tphatch.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index 00d434055158..d9b7c824c557 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -799,7 +799,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ChangeGradientHdl_Impl)
int nPos = m_pLbGradients->GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
- pGradient.reset(new XGradient( ( (XGradientEntry*) pGradientList->GetGradient( nPos ) )->GetGradient() ));
+ pGradient.reset(new XGradient( pGradientList->GetGradient( nPos )->GetGradient() ));
else
{
const SfxPoolItem* pPoolItem = NULL;
@@ -816,7 +816,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ChangeGradientHdl_Impl)
m_pLbGradients->SelectEntryPos( 0 );
nPos = m_pLbGradients->GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
- pGradient.reset(new XGradient( ( (XGradientEntry*) pGradientList->GetGradient( nPos ) )->GetGradient() ));
+ pGradient.reset(new XGradient( pGradientList->GetGradient( nPos )->GetGradient() ));
}
}
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx
index e4ee4544b4cc..5c0a0c182d8b 100644
--- a/cui/source/tabpages/tphatch.cxx
+++ b/cui/source/tabpages/tphatch.cxx
@@ -407,7 +407,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ChangeHatchHdl_Impl)
int nPos = m_pLbHatchings->GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
- pHatch.reset(new XHatch( ( (XHatchEntry*) pHatchingList->GetHatch( nPos ) )->GetHatch() ));
+ pHatch.reset(new XHatch( pHatchingList->GetHatch( nPos )->GetHatch() ));
else
{
const SfxPoolItem* pPoolItem = NULL;
@@ -424,7 +424,7 @@ IMPL_LINK_NOARG(SvxHatchTabPage, ChangeHatchHdl_Impl)
m_pLbHatchings->SelectEntryPos( 0 );
nPos = m_pLbHatchings->GetSelectEntryPos();
if( nPos != LISTBOX_ENTRY_NOTFOUND )
- pHatch.reset(new XHatch( ( (XHatchEntry*) pHatchingList->GetHatch( nPos ) )->GetHatch() ));
+ pHatch.reset(new XHatch( pHatchingList->GetHatch( nPos )->GetHatch() ));
}
}
if( pHatch )