summaryrefslogtreecommitdiff
path: root/sw/inc/SwNumberTree.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-07-06 14:13:12 +0200
committerMichael Stahl <mstahl@redhat.com>2017-07-06 23:29:43 +0200
commitea3e718855d804943831db81428fec249b9c7575 (patch)
tree64bedd0026b0598a7b24c4eae7cd2aa3e677fef5 /sw/inc/SwNumberTree.hxx
parenta0dc0d3cc2cf64567eeebba73d308f6ad827d810 (diff)
sw: convert SwNumberTree::IsSane to assert() and simplify
Change-Id: Ib2087a53d2a22f5fdafa5c3d0d058dd0ad8ed643
Diffstat (limited to 'sw/inc/SwNumberTree.hxx')
-rw-r--r--sw/inc/SwNumberTree.hxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/inc/SwNumberTree.hxx b/sw/inc/SwNumberTree.hxx
index 3d19458e5b8c..c908eeca490c 100644
--- a/sw/inc/SwNumberTree.hxx
+++ b/sw/inc/SwNumberTree.hxx
@@ -346,7 +346,7 @@ public:
@retval true the structure of this node is sane
@retval false else
*/
- bool IsSane(bool bRecursive) const;
+ void IsSane(bool bRecursive) const;
#endif // DBG_UTIL
protected:
@@ -391,15 +391,12 @@ protected:
virtual void PostRemove() = 0;
#ifdef DBG_UTIL
- /**
- Sanity check with loop detection.
+ /** Sanity check with loop detection.
@param bRecursive descend to children
@param rParents vector for recording path
-
- @retval true this node is sane
- @retval false else */
- virtual bool IsSane
+ */
+ virtual void IsSane
(bool bRecursive, std::vector<const SwNumberTreeNode *> rParents) const;
#endif // DBG_UTIL