[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sat Jul 20 15:56:22 UTC 2019


 sc/source/filter/excel/xiescher.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit d96ed8cccec07e7e2b99111c61a4277e32243b3d
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jul 20 15:06:05 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Jul 20 17:55:25 2019 +0200

    assign nLen during ctor
    
    Change-Id: I9164bd2b653208214276c48ddf49b21436edbd63
    Reviewed-on: https://gerrit.libreoffice.org/76012
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx
index 15fea088d3a2..c4d10a8eaf5a 100644
--- a/sc/source/filter/excel/xiescher.cxx
+++ b/sc/source/filter/excel/xiescher.cxx
@@ -3138,8 +3138,7 @@ void XclImpPictureObj::ReadPictFmla( XclImpStream& rStrm, sal_uInt16 nLinkSize )
                 // a class name may follow inside the picture link
                 if( rStrm.GetRecPos() + 2 <= nLinkEnd )
                 {
-                    sal_uInt16 nLen;
-                    nLen = rStrm.ReaduInt16();
+                    sal_uInt16 nLen = rStrm.ReaduInt16();
                     if( nLen > 0 )
                         maClassName = (GetBiff() == EXC_BIFF8) ? rStrm.ReadUniString( nLen ) : rStrm.ReadRawByteString( nLen );
                 }


More information about the Libreoffice-commits mailing list