diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:14:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:14:44 +0100 |
commit | dead6b3a944d0100ef833bb5d7f92bcd2563ada4 (patch) | |
tree | 3353ff138015cf48c38db8abaa9bc3478271b2cd /include/svl | |
parent | 43b137e1404acbd16649813e9d493ba97b8f509c (diff) |
More loplugin:cstylecast: svl
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I71e3b2c9b4c68183288f43999d242e95ae13584d
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/srchitem.hxx | 6 | ||||
-rw-r--r-- | include/svl/zforlist.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
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<sal_Int16>(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<sal_Int16>(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<sal_Int16>(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 { |