diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-06-20 09:44:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-06-20 14:41:48 +0200 |
commit | 94be0c12fe419cc7f50f5cfc6cdf161805e7490f (patch) | |
tree | 70b31d183faa72a5ea221d7a0bca51578f90b9e3 /svl/source | |
parent | 20faff1d46769a3c4150299b0b91d51bea4e543e (diff) |
SfxStyleSheetBasePool::Find can be const
Change-Id: I5cf2737d05cfe4b0be936a77cfb96db053483438
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136141
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/items/style.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index 50952a8857d2..0179635f7493 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -385,12 +385,12 @@ struct DoesStyleMatchStyleSheetPredicate final : public svl::StyleSheetPredicate } -SfxStyleSheetIterator::SfxStyleSheetIterator(SfxStyleSheetBasePool *pBase, +SfxStyleSheetIterator::SfxStyleSheetIterator(const SfxStyleSheetBasePool *pBase, SfxStyleFamily eFam, SfxStyleSearchBits n) - : pCurrentStyle(nullptr) + : pBasePool(pBase) + , pCurrentStyle(nullptr) , mnCurrentPosition(0) { - pBasePool=pBase; nSearchFamily=eFam; bSearchUsed=false; if( (( n & SfxStyleSearchBits::AllVisible ) != SfxStyleSearchBits::AllVisible ) @@ -690,7 +690,7 @@ SfxStyleSheetBasePool& SfxStyleSheetBasePool::operator+=( const SfxStyleSheetBas SfxStyleSheetBase* SfxStyleSheetBasePool::Find(const OUString& rName, SfxStyleFamily eFamily, - SfxStyleSearchBits eMask) + SfxStyleSearchBits eMask) const { SfxStyleSheetIterator aIter(this, eFamily, eMask); return aIter.Find(rName); |