diff options
author | Noel Grandin <noel@peralex.com> | 2020-10-08 10:21:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-08 18:45:29 +0200 |
commit | 592ad72ae178bc9018354ab37224666293ecbe81 (patch) | |
tree | 60954e07087ff8ee053e29e62d72ec1c281caa04 /sc/source/ui/unoobj/styleuno.cxx | |
parent | 9b6fb8bf3d8e622bd2d013744a591ff32287d3de (diff) |
use sal_Int32 for style-sheet index
instead of a mix of unsigned and sal_uInt16.
Change-Id: Ice56d58d22856daa6645577610368ba19a849176
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104076
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj/styleuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/styleuno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index 5d5aa8b93fbf..15e2074ffe44 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -638,7 +638,7 @@ void ScStyleFamilyObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) // XStyleFamily -ScStyleObj* ScStyleFamilyObj::GetObjectByIndex_Impl(sal_uInt32 nIndex) +ScStyleObj* ScStyleFamilyObj::GetObjectByIndex_Impl(sal_Int32 nIndex) { if ( pDocShell ) { @@ -648,7 +648,7 @@ ScStyleObj* ScStyleFamilyObj::GetObjectByIndex_Impl(sal_uInt32 nIndex) SfxStyleSheetIterator aIter( pStylePool, eFamily ); if ( nIndex < aIter.Count() ) { - SfxStyleSheetBase* pStyle = aIter[static_cast<sal_uInt16>(nIndex)]; + SfxStyleSheetBase* pStyle = aIter[nIndex]; if ( pStyle ) { return new ScStyleObj( pDocShell, eFamily, pStyle->GetName() ); |