diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-05-07 19:00:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-07 20:19:32 +0200 |
commit | 13ce37a85ac73a88567c2066fac694e4fc02a6f8 (patch) | |
tree | abeb41482ad967af75ea0c156a2ed0267f0fee2e /svx | |
parent | a2729787d9bf29f9c5c05137fe016407ab596b92 (diff) |
add utility method to get last pool in chain
Change-Id: If21defdf1b59219e3b81d803423713972412da7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115244
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/xoutdev/xpool.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/svx/source/xoutdev/xpool.cxx b/svx/source/xoutdev/xpool.cxx index 997c6b576f36..be56e4fd7a14 100644 --- a/svx/source/xoutdev/xpool.cxx +++ b/svx/source/xoutdev/xpool.cxx @@ -88,14 +88,7 @@ XOutdevItemPool::XOutdevItemPool(SfxItemPool* _pMaster) } else { - SfxItemPool* pParent = _pMaster; - - while(pParent->GetSecondaryPool()) - { - pParent = pParent->GetSecondaryPool(); - } - - pParent->SetSecondaryPool(this); + _pMaster->GetLastPoolInChain()->SetSecondaryPool(this); } // prepare PoolDefaults |