diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-06-01 16:05:07 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-06-01 21:20:29 +0200 |
commit | 0af4324c57a2ee22afcba72c0244c56cb7df8d4b (patch) | |
tree | 318fb391e55207488c0ab258ee0631eb70a345e5 /basic/source/classes | |
parent | da250c36d43ab96e985b263f41a199b151cd34df (diff) |
Use more appropriate type for SbiImage::GetString nId param
Change-Id: I4207830e3923ce9b4f7c0f59cf5880dfcf89979b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135243
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'basic/source/classes')
-rw-r--r-- | basic/source/classes/image.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index 677e0a68c8f1..e5f9ac3f5df2 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -643,14 +643,14 @@ void SbiImage::AddEnum(SbxObject* pObject) // Register enum type } // Note: IDs start with 1 -OUString SbiImage::GetString( short nId, SbxDataType *eType ) const +OUString SbiImage::GetString( sal_uInt32 nId, SbxDataType *eType ) const { - if( nId && nId <= short(mvStringOffsets.size()) ) + if( nId && nId <= mvStringOffsets.size() ) { sal_uInt32 nOff = mvStringOffsets[ nId - 1 ]; sal_Unicode* pStr = pStrings.get() + nOff; - sal_uInt32 nNextOff = (nId < short(mvStringOffsets.size())) ? mvStringOffsets[ nId ] : nStringSize; + sal_uInt32 nNextOff = (nId < mvStringOffsets.size()) ? mvStringOffsets[ nId ] : nStringSize; sal_uInt32 nLen = nNextOff - nOff - 1; // #i42467: Special treatment for vbNullChar if (*pStr == 0) |