From dead6b3a944d0100ef833bb5d7f92bcd2563ada4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:14:44 +0100 Subject: More loplugin:cstylecast: svl auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I71e3b2c9b4c68183288f43999d242e95ae13584d --- include/svl/srchitem.hxx | 6 +++--- include/svl/zforlist.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include/svl') diff --git a/include/svl/srchitem.hxx b/include/svl/srchitem.hxx index 343433dd8808..a449f250ca39 100644 --- a/include/svl/srchitem.hxx +++ b/include/svl/srchitem.hxx @@ -262,7 +262,7 @@ bool SvxSearchItem::IsLEVRelaxed() const sal_uInt16 SvxSearchItem::GetLEVOther() const { - return (sal_Int16) m_aSearchOpt.changedChars; + return static_cast(m_aSearchOpt.changedChars); } void SvxSearchItem::SetLEVOther( sal_uInt16 nVal ) @@ -272,7 +272,7 @@ void SvxSearchItem::SetLEVOther( sal_uInt16 nVal ) sal_uInt16 SvxSearchItem::GetLEVShorter() const { - return (sal_Int16) m_aSearchOpt.insertedChars; + return static_cast(m_aSearchOpt.insertedChars); } void SvxSearchItem::SetLEVShorter( sal_uInt16 nVal ) @@ -282,7 +282,7 @@ void SvxSearchItem::SetLEVShorter( sal_uInt16 nVal ) sal_uInt16 SvxSearchItem::GetLEVLonger() const { - return (sal_Int16) m_aSearchOpt.deletedChars; + return static_cast(m_aSearchOpt.deletedChars); } void SvxSearchItem::SetLEVLonger( sal_uInt16 nVal ) diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index e82d68072c75..838f69508338 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -60,7 +60,7 @@ namespace com { namespace sun { namespace star { /// number formatter was constructed with. constexpr sal_uInt32 NF_STANDARD_FORMAT_TEXT = SV_MAX_COUNT_STANDARD_FORMATS; -#define NUMBERFORMAT_ENTRY_NOT_FOUND (sal_uInt32)(0xffffffff) /// MAX_ULONG +#define NUMBERFORMAT_ENTRY_NOT_FOUND sal_uInt32(0xffffffff) /// MAX_ULONG enum class SvNumFormatType : sal_Int16 { -- cgit