[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - scripting/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 4 13:28:49 UTC 2019


 scripting/source/stringresource/stringresource.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 36ce4fff0f96d711d185b0da60ed3d71e3a10d7a
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jan 12 20:16:56 2018 +0100
Commit:     Aron Budea <aron.budea at collabora.com>
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 );


More information about the Libreoffice-commits mailing list