diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-31 20:39:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-31 22:03:42 +0200 |
commit | b19a2dfafa366f5fea1b70a1bae2d39a76a54a8e (patch) | |
tree | c8d5a651be9c72a9d3553226ee2e6e9b20914839 /basic/source/classes/image.cxx | |
parent | 4c60697daaecc8be0a00e900ba1b4b62713e43df (diff) |
Use more appropriate type for SbiImage::nStringIdx
Change-Id: I1448739b373c6f7b9f5e6ee5a725fa0a129a4fb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135204
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic/source/classes/image.cxx')
-rw-r--r-- | basic/source/classes/image.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index 229dc8058518..677e0a68c8f1 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -578,7 +578,7 @@ void SbiImage::MakeStrings( short nSize ) // growing in 1K-Steps void SbiImage::AddString( const OUString& r ) { - if( nStringIdx >= short(mvStringOffsets.size()) ) + if( nStringIdx >= mvStringOffsets.size() ) { bError = true; } @@ -606,7 +606,7 @@ void SbiImage::AddString( const OUString& r ) memcpy( pStrings.get() + nStringOff, r.getStr(), len * sizeof( sal_Unicode ) ); nStringOff = nStringOff + len; // Last String? The update the size of the buffer - if( nStringIdx >= short(mvStringOffsets.size()) ) + if( nStringIdx >= mvStringOffsets.size() ) { nStringSize = nStringOff; } |