diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2024-02-11 12:51:18 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2024-02-12 07:27:47 +0100 |
commit | a476aa8d222a949a67676d95ec07914bbf00e23b (patch) | |
tree | 387d9f5791a17f81ff6c8ffdd207d45106c04ca6 /editeng/inc | |
parent | d0d83b8b4a8ee5a889e1ffdf1293b858bf69caaf (diff) |
editeng: make TextPortionList iterable with ranged for
Change-Id: Ifbddd99b5877c71ebbec064672b75877fe06ccd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163226
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'editeng/inc')
-rw-r--r-- | editeng/inc/TextPortionList.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editeng/inc/TextPortionList.hxx b/editeng/inc/TextPortionList.hxx index 7c646ebbbee9..dc6b5e064bd5 100644 --- a/editeng/inc/TextPortionList.hxx +++ b/editeng/inc/TextPortionList.hxx @@ -59,6 +59,11 @@ public: sal_Int32 GetPos(const TextPortion* p) const; bool isEmpty() { return Count() == 1 && maPortions[0]->GetLen() == 0; } + + PortionsType::iterator begin() { return maPortions.begin(); } + PortionsType::iterator end() { return maPortions.end(); } + PortionsType::const_iterator cbegin() const { return maPortions.cbegin(); } + PortionsType::const_iterator cend() const { return maPortions.cend(); } }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |