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 /sw | |
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 'sw')
-rw-r--r-- | sw/inc/docstyle.hxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/app/docstyle.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/docstyle.hxx b/sw/inc/docstyle.hxx index 229ed37e0e32..8e79ee930a30 100644 --- a/sw/inc/docstyle.hxx +++ b/sw/inc/docstyle.hxx @@ -179,8 +179,8 @@ public: SfxStyleFamily eFam, SfxStyleSearchBits n); virtual ~SwStyleSheetIterator() override; - virtual sal_uInt16 Count() override; - virtual SfxStyleSheetBase *operator[](sal_uInt16 nIdx) override; + virtual sal_Int32 Count() override; + virtual SfxStyleSheetBase *operator[](sal_Int32 nIdx) override; virtual SfxStyleSheetBase* First() override; virtual SfxStyleSheetBase* Next() override; virtual SfxStyleSheetBase* Find(const OUString& rStr) override; diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx index 9dc426bc1d51..9f594d1ceada 100644 --- a/sw/source/uibase/app/docstyle.cxx +++ b/sw/source/uibase/app/docstyle.cxx @@ -2664,7 +2664,7 @@ SwStyleSheetIterator::~SwStyleSheetIterator() EndListening( *mxIterSheet->GetPool() ); } -sal_uInt16 SwStyleSheetIterator::Count() +sal_Int32 SwStyleSheetIterator::Count() { // let the list fill correctly!! if( !bFirstCalled ) @@ -2672,7 +2672,7 @@ sal_uInt16 SwStyleSheetIterator::Count() return aLst.size(); } -SfxStyleSheetBase* SwStyleSheetIterator::operator[]( sal_uInt16 nIdx ) +SfxStyleSheetBase* SwStyleSheetIterator::operator[]( sal_Int32 nIdx ) { // found if( !bFirstCalled ) |