summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-11 17:36:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-11 17:36:44 +0100
commit4c799fa83a5a51f27301110ae165855ffbc7a596 (patch)
treedf3483964cb88c56e8b3e7e92659ac90573fb33b /svx/source/unodraw
parenta31b7a941eee06efaa92a54a49c955c914fd20aa (diff)
loplugin:redundantcast: svx
(after a to-be-committed improved loplugin:cstylecast would have rewritten the C-style casts into static_casts) Change-Id: Icd1f084d4ffab286fd3c7c02693444eaf7799354
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/XPropertyTable.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx
index c3361936613c..ce2134dbf3d0 100644
--- a/svx/source/unodraw/XPropertyTable.cxx
+++ b/svx/source/unodraw/XPropertyTable.cxx
@@ -461,7 +461,7 @@ uno::Any SvxUnoXHatchTable::getAny( const XPropertyEntry* pEntry ) const throw()
drawing::Hatch aUnoHatch;
- aUnoHatch.Style = (drawing::HatchStyle)aHatch.GetHatchStyle();
+ aUnoHatch.Style = aHatch.GetHatchStyle();
aUnoHatch.Color = aHatch.GetColor().GetColor();
aUnoHatch.Distance = aHatch.GetDistance();
aUnoHatch.Angle = aHatch.GetAngle();
@@ -476,7 +476,7 @@ std::unique_ptr<XPropertyEntry> SvxUnoXHatchTable::createEntry(const OUString& r
return std::unique_ptr<XHatchEntry>();
XHatch aXHatch;
- aXHatch.SetHatchStyle( (css::drawing::HatchStyle)aUnoHatch.Style );
+ aXHatch.SetHatchStyle( aUnoHatch.Style );
aXHatch.SetColor( aUnoHatch.Color );
aXHatch.SetDistance( aUnoHatch.Distance );
aXHatch.SetAngle( aUnoHatch.Angle );
@@ -532,7 +532,7 @@ uno::Any SvxUnoXGradientTable::getAny( const XPropertyEntry* pEntry ) const thro
const XGradient& aXGradient = static_cast<const XGradientEntry*>(pEntry)->GetGradient();
awt::Gradient aGradient;
- aGradient.Style = (awt::GradientStyle) aXGradient.GetGradientStyle();
+ aGradient.Style = aXGradient.GetGradientStyle();
aGradient.StartColor = (sal_Int32)aXGradient.GetStartColor().GetColor();
aGradient.EndColor = (sal_Int32)aXGradient.GetEndColor().GetColor();
aGradient.Angle = (short)aXGradient.GetAngle();
@@ -554,7 +554,7 @@ std::unique_ptr<XPropertyEntry> SvxUnoXGradientTable::createEntry(const OUString
XGradient aXGradient;
- aXGradient.SetGradientStyle( (css::awt::GradientStyle) aGradient.Style );
+ aXGradient.SetGradientStyle( aGradient.Style );
aXGradient.SetStartColor( aGradient.StartColor );
aXGradient.SetEndColor( aGradient.EndColor );
aXGradient.SetAngle( aGradient.Angle );