diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-06 21:54:25 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-06 23:04:14 +0200 |
commit | 56be83fbb9ac5bb1407f763588a04a6239e0bcd4 (patch) | |
tree | 1805319ad7f3714dadd17be263cb4857dd4e0ed0 /basic/source/classes | |
parent | 6af2e7d21ce050758ad07fbb951a38b2da2b6c4c (diff) |
Move variable definition to usage site
Change-Id: I3d95551cb72b867e19a1a2bf75c73d1c3422a984
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120132
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basic/source/classes')
-rw-r--r-- | basic/source/classes/image.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index 52aee6636c79..69e30bb11954 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -108,7 +108,7 @@ bool SbiImage::Load( SvStream& r, sal_uInt32& nVersion ) { sal_uInt16 nSign, nCount; - sal_uInt32 nLen, nOff; + sal_uInt32 nLen; Clear(); // Read Master-Record @@ -219,6 +219,7 @@ bool SbiImage::Load( SvStream& r, sal_uInt32& nVersion ) MakeStrings( nCount ); for( size_t i = 0; i < mvStringOffsets.size() && SbiGood( r ); i++ ) { + sal_uInt32 nOff; r.ReadUInt32( nOff ); mvStringOffsets[ i ] = static_cast<sal_uInt16>(nOff); } |