diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-01-23 14:02:56 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-01-23 14:04:24 +0100 |
commit | 2830d21964f655c3bbc8cda1f63ce6a3840f6742 (patch) | |
tree | 2bfac5d3c57ca6b4843e38768ff70acc6d4b3d68 /sw | |
parent | d9b45d0823a5f2af89f5e60862711648beeebfb2 (diff) |
sw: SwpHintsArray::Contains() cannot call CHECK
... as the comment implies, so revert this part of
4fcde4fe8ea5d4521a59e19291e393835144d7d9.
Change-Id: I36505379832739607646d808e2528b47d512826f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/ndhints.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/core/txtnode/ndhints.cxx b/sw/source/core/txtnode/ndhints.cxx index 9c2b75299203..6cd9ec9382b3 100644 --- a/sw/source/core/txtnode/ndhints.cxx +++ b/sw/source/core/txtnode/ndhints.cxx @@ -132,11 +132,7 @@ void SwpHintsArray::DeleteAtPos( const size_t nPos ) bool SwpHintsArray::Contains( const SwTxtAttr *pHt ) const { -#ifdef DBG_UTIL - Check(true); -#endif - - // DO NOT use find() here! + // DO NOT use find() or CHECK here! // if called from SwTxtNode::InsertItem, pHt has already been deleted, // so it cannot be dereferenced for (size_t i = 0; i < m_HintStarts.size(); ++i) |