summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2020-10-08 10:21:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-08 18:45:29 +0200
commit592ad72ae178bc9018354ab37224666293ecbe81 (patch)
tree60954e07087ff8ee053e29e62d72ec1c281caa04 /sc
parent9b6fb8bf3d8e622bd2d013744a591ff32287d3de (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')
-rw-r--r--sc/inc/styleuno.hxx2
-rw-r--r--sc/source/core/data/stlpool.cxx2
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx
index 529e776e30a0..b4f95f0b6214 100644
--- a/sc/inc/styleuno.hxx
+++ b/sc/inc/styleuno.hxx
@@ -110,7 +110,7 @@ private:
ScDocShell* pDocShell;
SfxStyleFamily eFamily; // Family
- ScStyleObj* GetObjectByIndex_Impl(sal_uInt32 nIndex);
+ ScStyleObj* GetObjectByIndex_Impl(sal_Int32 nIndex);
ScStyleObj* GetObjectByName_Impl(const OUString& Name);
public:
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index f2f337e56bad..6a8fcd5f5663 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -412,7 +412,7 @@ struct CaseInsensitiveNamePredicate : svl::StyleSheetPredicate
ScStyleSheet* ScStyleSheetPool::FindCaseIns( const OUString& rName, SfxStyleFamily eFam )
{
CaseInsensitiveNamePredicate aPredicate(rName, eFam);
- std::vector<unsigned> aFoundPositions = GetIndexedStyleSheets().FindPositionsByPredicate(aPredicate);
+ std::vector<sal_Int32> aFoundPositions = GetIndexedStyleSheets().FindPositionsByPredicate(aPredicate);
for (const auto& rPos : aFoundPositions)
{
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() );