diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:17:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:17:51 +0100 |
commit | 5a3bb76cd384fa3760fe8481ce008791258595ad (patch) | |
tree | 8544fecc06b73cb43000143339c06ad880b56db4 /include/rtl | |
parent | acd1696a066b8fa6fb94a0613939565799413769 (diff) |
More loplugin:cstylecast: sal
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: I7d89b011464ba5d2dd12e04d5fc9f65cb4daebde
Diffstat (limited to 'include/rtl')
-rw-r--r-- | include/rtl/math.hxx | 4 | ||||
-rw-r--r-- | include/rtl/string.hxx | 2 | ||||
-rw-r--r-- | include/rtl/ustring.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/rtl/math.hxx b/include/rtl/math.hxx index 4cd21eae91fb..a965c7b38bca 100644 --- a/include/rtl/math.hxx +++ b/include/rtl/math.hxx @@ -181,7 +181,7 @@ inline double stringToDouble(rtl::OString const & rString, cDecSeparator, cGroupSeparator, pStatus, &pEnd); if (pParsedEnd != NULL) - *pParsedEnd = (sal_Int32)(pEnd - pBegin); + *pParsedEnd = static_cast<sal_Int32>(pEnd - pBegin); return fResult; } @@ -200,7 +200,7 @@ inline double stringToDouble(rtl::OUString const & rString, cDecSeparator, cGroupSeparator, pStatus, &pEnd); if (pParsedEnd != NULL) - *pParsedEnd = (sal_Int32)(pEnd - pBegin); + *pParsedEnd = static_cast<sal_Int32>(pEnd - pBegin); return fResult; } diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index ead2af45863e..de073293256a 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -1864,7 +1864,7 @@ struct OStringHash persistently, as its computation may change in later revisions. */ size_t operator()( const OString& rString ) const - { return (size_t)rString.hashCode(); } + { return static_cast<size_t>(rString.hashCode()); } }; /** Equality functor for classic c-strings (i.e., null-terminated char* strings). */ diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx index f5aa1312b000..1731bb905c76 100644 --- a/include/rtl/ustring.hxx +++ b/include/rtl/ustring.hxx @@ -3610,7 +3610,7 @@ struct OUStringHash persistently, as its computation may change in later revisions. */ size_t operator()(const OUString& rString) const - { return (size_t)rString.hashCode(); } + { return static_cast<size_t>(rString.hashCode()); } }; /* ======================================================================= */ |