summaryrefslogtreecommitdiff
path: root/include/svl/IndexedStyleSheets.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-03-08 13:06:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-08 17:56:30 +0100
commit5cd557a512551ae5033957e22ea5c5f285518be3 (patch)
treea2aa684d57dec327753d8487da6d26a7952254d0 /include/svl/IndexedStyleSheets.hxx
parentfae655c430e7e61a867721d2aab0cb3d561e45a4 (diff)
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.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl/IndexedStyleSheets.hxx')
-rw-r--r--include/svl/IndexedStyleSheets.hxx2
1 files changed, 1 insertions, 1 deletions
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;