include/svl/IndexedStyleSheets.hxx | 2 +- svl/source/items/IndexedStyleSheets.cxx | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-)
New commits: commit 5cd557a512551ae5033957e22ea5c5f285518be3 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Fri Mar 8 13:06:46 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Mar 8 17:56:30 2024 +0100 tdf#158773 GetNumberOfStyleSheets can be an inline method Change-Id: I24a013d74bf8f9336496232d585ac1f0b069696c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164572 Tested-by: Noel Grandin <noel.gran...@collabora.co.uk> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/include/svl/IndexedStyleSheets.hxx b/include/svl/IndexedStyleSheets.hxx index f358f234b84e..3ca69f1c76d5 100644 --- a/include/svl/IndexedStyleSheets.hxx +++ b/include/svl/IndexedStyleSheets.hxx @@ -94,7 +94,7 @@ public: bool HasStyleSheet(const rtl::Reference<SfxStyleSheetBase>& style) const; /** Obtain the number of style sheets which are held */ - sal_Int32 GetNumberOfStyleSheets() const; + sal_Int32 GetNumberOfStyleSheets() const { return mStyleSheets.size(); } /** Obtain the number of style sheets for which a certain condition holds */ sal_Int32 GetNumberOfStyleSheetsWithPredicate(StyleSheetPredicate& predicate) const; diff --git a/svl/source/items/IndexedStyleSheets.cxx b/svl/source/items/IndexedStyleSheets.cxx index fd3962474db8..a9ca6908695d 100644 --- a/svl/source/items/IndexedStyleSheets.cxx +++ b/svl/source/items/IndexedStyleSheets.cxx @@ -72,11 +72,6 @@ IndexedStyleSheets::Reindex() } } -sal_Int32 IndexedStyleSheets::GetNumberOfStyleSheets() const -{ - return mStyleSheets.size(); -} - void IndexedStyleSheets::AddStyleSheet(const rtl::Reference< SfxStyleSheetBase >& style) {