diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:17:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:17:24 +0100 |
commit | acd1696a066b8fa6fb94a0613939565799413769 (patch) | |
tree | 31dac1c3922fe467e1771f514c3cca3d2e552ae3 /sax/source/expatwrap/saxwriter.cxx | |
parent | 681783c9adf85bde36348f11c03d3a483bf545be (diff) |
More loplugin:cstylecast: sax
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: Ide5941d633fb3bf930b790d644154829b77ad117
Diffstat (limited to 'sax/source/expatwrap/saxwriter.cxx')
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index f84a7301dcfe..a9d8f280706c 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -141,7 +141,7 @@ public: bool bNormalizeWhitespace); sal_uInt32 GetLastColumnCount() const throw() - { return (sal_uInt32)(nCurrentPos - nLastLineFeedPos); } + { return static_cast<sal_uInt32>(nCurrentPos - nLastLineFeedPos); } /// @throws SAXException inline void startDocument(); @@ -380,7 +380,7 @@ inline bool SaxWriterHelper::convertToXML( const sal_Unicode * pStr, break; default: { - pTarget[rPos] = (sal_Int8)c; + pTarget[rPos] = static_cast<sal_Int8>(c); rPos ++; } break; @@ -388,8 +388,8 @@ inline bool SaxWriterHelper::convertToXML( const sal_Unicode * pStr, } else { - pTarget[rPos] = (sal_Int8)c; - if ((sal_Int8)c == LINEFEED) + pTarget[rPos] = static_cast<sal_Int8>(c); + if (static_cast<sal_Int8>(c) == LINEFEED) nLastLineFeedPos = rPos; rPos ++; } |