summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/tpgradnt.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:24 +0100
commit8fc6c5c84b3e4249f4c38ebb7399e0d07d9d4463 (patch)
tree4eeccec5155416c03527870091ac1d3f2e35ebb9 /cui/source/tabpages/tpgradnt.cxx
parentd73e5b066bc575ee97ec388f301806297eeb7f59 (diff)
More loplugin:cstylecast: cui
Change-Id: I5bbdd0b65111c65850652f2ddc93379954498073
Diffstat (limited to 'cui/source/tabpages/tpgradnt.cxx')
-rw-r--r--cui/source/tabpages/tpgradnt.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index e01db477109b..0ce06ab0a362 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -237,7 +237,7 @@ bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet )
aString = "gradient";
pXGradient.reset(new XGradient( m_pLbColorFrom->GetSelectEntryColor(),
m_pLbColorTo->GetSelectEntryColor(),
- (css::awt::GradientStyle) m_pLbGradientType->GetSelectedEntryPos(),
+ static_cast<css::awt::GradientStyle>(m_pLbGradientType->GetSelectedEntryPos()),
static_cast<long>(m_pMtrAngle->GetValue() * 10), // should be changed in resource
static_cast<sal_uInt16>(m_pMtrCenterX->GetValue()),
static_cast<sal_uInt16>(m_pMtrCenterY->GetValue()),
@@ -330,7 +330,7 @@ void SvxGradientTabPage::ModifiedHdl_Impl( void const * pControl )
if(pControl == m_pSliderIncrement)
m_pMtrIncrement->SetValue( m_pSliderIncrement->GetThumbPos() );
- css::awt::GradientStyle eXGS = (css::awt::GradientStyle) m_pLbGradientType->GetSelectedEntryPos();
+ css::awt::GradientStyle eXGS = static_cast<css::awt::GradientStyle>(m_pLbGradientType->GetSelectedEntryPos());
XGradient aXGradient( m_pLbColorFrom->GetSelectEntryColor(),
m_pLbColorTo->GetSelectEntryColor(),
@@ -410,7 +410,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ClickAddHdl_Impl, Button*, void)
{
XGradient aXGradient( m_pLbColorFrom->GetSelectEntryColor(),
m_pLbColorTo->GetSelectEntryColor(),
- (css::awt::GradientStyle) m_pLbGradientType->GetSelectedEntryPos(),
+ static_cast<css::awt::GradientStyle>(m_pLbGradientType->GetSelectedEntryPos()),
static_cast<long>(m_pMtrAngle->GetValue() * 10), // should be changed in resource
static_cast<sal_uInt16>(m_pMtrCenterX->GetValue()),
static_cast<sal_uInt16>(m_pMtrCenterY->GetValue()),
@@ -449,7 +449,7 @@ IMPL_LINK_NOARG(SvxGradientTabPage, ClickModifyHdl_Impl, Button*, void)
XGradient aXGradient( m_pLbColorFrom->GetSelectEntryColor(),
m_pLbColorTo->GetSelectEntryColor(),
- (css::awt::GradientStyle) m_pLbGradientType->GetSelectedEntryPos(),
+ static_cast<css::awt::GradientStyle>(m_pLbGradientType->GetSelectedEntryPos()),
static_cast<long>(m_pMtrAngle->GetValue() * 10), // should be changed in resource
static_cast<sal_uInt16>(m_pMtrCenterX->GetValue()),
static_cast<sal_uInt16>(m_pMtrCenterY->GetValue()),