[Libreoffice-commits] core.git: basic/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Fri Aug 6 21:04:48 UTC 2021
basic/source/classes/image.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 56be83fbb9ac5bb1407f763588a04a6239e0bcd4
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Aug 6 21:54:25 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Fri Aug 6 23:04:14 2021 +0200
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 at collabora.com>
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);
}
More information about the Libreoffice-commits
mailing list