Kaydet (Commit) 36ce4fff authored tarafından Stephan Bergmann's avatar Stephan Bergmann Kaydeden (comit) Aron Budea

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 02416cc1)
üst 676ce0ce
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment