summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:16:56 +0100
commit02416cc1ce1f5d64265d509a0c1b149d11b5a3cb (patch)
tree20753b7dad55c4ba31738e58414a8ed00b04b78a /scripting
parentabf7b94123a555c4f3e90a0ae41bd7a842d1c1fb (diff)
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
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/stringresource/stringresource.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 308b3ff57176..538bd5ed77e0 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 );