diff options
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/emphasismarkitem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/frmdiritem.hxx | 2 | ||||
-rw-r--r-- | include/editeng/paravertalignitem.hxx | 4 | ||||
-rw-r--r-- | include/editeng/writingmodeitem.hxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/include/editeng/emphasismarkitem.hxx b/include/editeng/emphasismarkitem.hxx index 315eabcbf680..9bc5ce883b58 100644 --- a/include/editeng/emphasismarkitem.hxx +++ b/include/editeng/emphasismarkitem.hxx @@ -61,7 +61,7 @@ public: // enum cast FontEmphasisMark GetEmphasisMark() const - { return (FontEmphasisMark)GetValue(); } + { return static_cast<FontEmphasisMark>(GetValue()); } }; #endif // INCLUDED_EDITENG_EMPHASISMARKITEM_HXX diff --git a/include/editeng/frmdiritem.hxx b/include/editeng/frmdiritem.hxx index 7ae1a2db2ccf..57feb3c3ebb3 100644 --- a/include/editeng/frmdiritem.hxx +++ b/include/editeng/frmdiritem.hxx @@ -50,7 +50,7 @@ public: virtual sal_uInt16 GetValueCount() const override { - return (sal_uInt16)SvxFrameDirection::Environment + 1; + return sal_uInt16(SvxFrameDirection::Environment) + 1; } SvxFrameDirectionItem& operator=( const SvxFrameDirectionItem& rItem ) { diff --git a/include/editeng/paravertalignitem.hxx b/include/editeng/paravertalignitem.hxx index 53da2d2d585c..1059343268ab 100644 --- a/include/editeng/paravertalignitem.hxx +++ b/include/editeng/paravertalignitem.hxx @@ -52,8 +52,8 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; - Align GetValue() const { return (Align) SfxUInt16Item::GetValue(); } - void SetValue(Align n) { SfxUInt16Item::SetValue((sal_uInt16)n); } + Align GetValue() const { return static_cast<Align>(SfxUInt16Item::GetValue()); } + void SetValue(Align n) { SfxUInt16Item::SetValue(static_cast<sal_uInt16>(n)); } SvxParaVertAlignItem& operator=( const SvxParaVertAlignItem& rItem ) { diff --git a/include/editeng/writingmodeitem.hxx b/include/editeng/writingmodeitem.hxx index 2210a443a940..c7a823d8c6bd 100644 --- a/include/editeng/writingmodeitem.hxx +++ b/include/editeng/writingmodeitem.hxx @@ -37,7 +37,7 @@ public: virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const override; virtual bool operator==( const SfxPoolItem& ) const override; - css::text::WritingMode GetValue() const { return (css::text::WritingMode)SfxUInt16Item::GetValue(); } + css::text::WritingMode GetValue() const { return static_cast<css::text::WritingMode>(SfxUInt16Item::GetValue()); } virtual bool GetPresentation( SfxItemPresentation ePres, MapUnit eCoreMetric, |