More loplugin:cstylecast: codemaker

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: If1c6b7a83f6f64fbcbced4f036c0f859a1408d0c
This commit is contained in:
Stephan Bergmann
2018-01-12 20:28:16 +01:00
parent b088da2a7a
commit 56bd8bb862

View File

@@ -330,7 +330,7 @@ bool FileStream::write(void const * buffer, sal_uInt64 size) {
FileStream &operator<<(FileStream& o, sal_uInt32 i) { FileStream &operator<<(FileStream& o, sal_uInt32 i) {
sal_uInt64 writtenBytes; sal_uInt64 writtenBytes;
OString s = OString::number((sal_Int32)i); OString s = OString::number(static_cast<sal_Int32>(i));
osl_writeFile(o.m_file, s.getStr(), s.getLength() * sizeof(sal_Char), &writtenBytes); osl_writeFile(o.m_file, s.getStr(), s.getLength() * sizeof(sal_Char), &writtenBytes);
return o; return o;
} }