scripting/source/stringresource/stringresource.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 36ce4fff0f96d711d185b0da60ed3d71e3a10d7a Author: Stephan Bergmann <[email protected]> AuthorDate: Fri Jan 12 20:16:56 2018 +0100 Commit: Aron Budea <[email protected]> CommitDate: Tue Jun 4 15:27:30 2019 +0200 More loplugin:cstylecast: scripting 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: I52e58aa38c600faf677e932cb3caad07547ccbb7 (cherry picked from commit 02416cc1ce1f5d64265d509a0c1b149d11b5a3cb) diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 88becc349103..c4180f0e3247 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1220,7 +1220,7 @@ Sequence< ::sal_Int8 > BinaryOutput::closeAndGetData() if( !xSeekable.is() ) return aRetSeq; - sal_Int32 nSize = (sal_Int32)xSeekable->getPosition(); + sal_Int32 nSize = static_cast<sal_Int32>(xSeekable->getPosition()); Reference< io::XInputStream> xInputStream( m_xTempFile, UNO_QUERY ); if( !xInputStream.is() ) @@ -1287,8 +1287,8 @@ Sequence< sal_Int8 > StringResourcePersistenceImpl::exportBinary( ) } // Write header - sal_Int16 nLocaleCount16 = (sal_Int16)nLocaleCount; - sal_Int16 iDefault16 = (sal_Int16)iDefault; + sal_Int16 nLocaleCount16 = static_cast<sal_Int16>(nLocaleCount); + sal_Int16 iDefault16 = static_cast<sal_Int16>(iDefault); aOut.writeInt16( 0 ); // nVersion aOut.writeInt16( nLocaleCount16 ); aOut.writeInt16( iDefault16 ); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
