diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-25 15:53:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 06:08:51 +0000 |
commit | a7ea18ffe715776cb0e2b39e98569c75605ee332 (patch) | |
tree | 1e32da87f2ad0e8d111ba8ed99180bb6b4cf2a77 /sw/source/core/SwNumberTree | |
parent | eca5ea9f79181d45cd7fbabe2313617d3025818a (diff) |
loplugin:expandablemethods in sw
Change-Id: Ibc9edc28f4041235ab30c026bd3774bd74b7e960
Reviewed-on: https://gerrit.libreoffice.org/30287
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/SwNumberTree')
-rw-r--r-- | sw/source/core/SwNumberTree/SwNumberTree.cxx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/sw/source/core/SwNumberTree/SwNumberTree.cxx b/sw/source/core/SwNumberTree/SwNumberTree.cxx index 49be27e7bdb9..69564bfb5416 100644 --- a/sw/source/core/SwNumberTree/SwNumberTree.cxx +++ b/sw/source/core/SwNumberTree/SwNumberTree.cxx @@ -1070,21 +1070,14 @@ void SwNumberTreeNode::SetLastValid ++aIt; } - SetLastValid(bValidating); + if (mpParent) + { + mpParent->SetLastValid(mpParent->GetIterator(this), bValidating); + } } } } -void SwNumberTreeNode::SetLastValid(bool bValidating) const -{ - if (mpParent) - { - tSwNumberTreeChildren::const_iterator aIt = mpParent->GetIterator(this); - - mpParent->SetLastValid(aIt, bValidating); - } -} - void SwNumberTreeNode::InvalidateTree() const { // do not call SetInvalid, would cause loop !!! |