diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-08-14 15:37:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-15 08:56:52 +0200 |
commit | 8ee4530b90ca7c7967fad00f059236a2b0b57607 (patch) | |
tree | 5335981632ba7a871c5f9f8cc41ed46414fba248 /sd | |
parent | b50d6a593dbd4e17cf2caee0e6765a0d22f49e76 (diff) |
remove redundant SvxFrameDirection casts
and replace remaining C-style casts
Change-Id: Ie83e2706391c05946ab46dfd7d26059101579153
Reviewed-on: https://gerrit.libreoffice.org/41143
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-text.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/func/futext.cxx | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx index 76adf02d3842..bd898407e880 100644 --- a/sd/source/filter/eppt/pptx-text.cxx +++ b/sd/source/filter/eppt/pptx-text.cxx @@ -1196,7 +1196,7 @@ void ParagraphObj::ImplGetParagraphValues( PPTExBulletProvider* pBuProv, bool bG sal_Int16 nWritingMode = 0; mAny >>= nWritingMode; - SvxFrameDirection eWritingMode( (SvxFrameDirection)nWritingMode ); + SvxFrameDirection eWritingMode = static_cast<SvxFrameDirection>(nWritingMode); if ( ( eWritingMode == SvxFrameDirection::Horizontal_RL_TB ) || ( eWritingMode == SvxFrameDirection::Vertical_RL_TB ) ) { diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx index 1d65dd5d8fca..d6db3f7bb22d 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -829,7 +829,8 @@ bool FuText::MouseButtonUp(const MouseEvent& rMEvt) // one of the default set items from ImpSetAttributesForNewTextObject // needs to be adapted to non-block mode. const SfxItemSet& rSet = mpView->GetDefaultAttr(); - SvxFrameDirection eDirection = (SvxFrameDirection)static_cast<const SvxFrameDirectionItem&>(rSet.Get(EE_PARA_WRITINGDIR)).GetValue(); + SvxFrameDirection eDirection = static_cast<const SvxFrameDirectionItem&>( + rSet.Get(EE_PARA_WRITINGDIR)).GetValue(); if(SvxFrameDirection::Horizontal_RL_TB == eDirection || SvxFrameDirection::Vertical_RL_TB == eDirection) { @@ -849,7 +850,8 @@ bool FuText::MouseButtonUp(const MouseEvent& rMEvt) // Look in the object defaults if left-to-right is wanted. If // yes, set text anchoring to right to let the box grow to left. const SfxItemSet& rSet = mpView->GetDefaultAttr(); - SvxFrameDirection eDirection = (SvxFrameDirection)static_cast<const SvxFrameDirectionItem&>(rSet.Get(EE_PARA_WRITINGDIR)).GetValue(); + SvxFrameDirection eDirection = + static_cast<const SvxFrameDirectionItem&>(rSet.Get(EE_PARA_WRITINGDIR)).GetValue(); if(SvxFrameDirection::Horizontal_RL_TB == eDirection) { |