diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-31 16:34:50 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-31 20:26:45 +0200 |
commit | b60285e916e1c4102ef990f9aacb85307973d55e (patch) | |
tree | 309b54d42c595fd5ee7a42983219777d3550e619 /sw/source/core/txtnode | |
parent | 43377e09d86dfcf800270a4c469ea5bd373392c6 (diff) |
SwpHintsArray: deploy some asserts
Change-Id: I16f416cb63221860ff743ce2e2291af99cd19de2
Diffstat (limited to 'sw/source/core/txtnode')
-rw-r--r-- | sw/source/core/txtnode/ndhints.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/core/txtnode/ndhints.cxx b/sw/source/core/txtnode/ndhints.cxx index 88ea48fb5536..29efd9fd6246 100644 --- a/sw/source/core/txtnode/ndhints.cxx +++ b/sw/source/core/txtnode/ndhints.cxx @@ -130,14 +130,10 @@ bool CompareSwpHtEnd::operator()(SwTxtAttr* const lhs, SwTxtAttr* const rhs) con void SwpHintsArray::Insert( const SwTxtAttr *pHt ) { Resort(); -#if OSL_DEBUG_LEVEL > 0 - OSL_ENSURE( - m_HintStarts.find(const_cast<SwTxtAttr*>(pHt)) == m_HintStarts.end(), - "Insert: hint already in HtStart"); - OSL_ENSURE( - m_HintEnds.find(const_cast<SwTxtAttr*>(pHt)) == m_HintEnds.end(), - "Insert: hint already in HtEnd"); -#endif + assert(m_HintStarts.find(const_cast<SwTxtAttr*>(pHt)) + == m_HintStarts.end()); // "Insert: hint already in HtStart" + assert(m_HintEnds.find(const_cast<SwTxtAttr*>(pHt)) + == m_HintEnds.end()); // "Insert: hint already in HtEnd" m_HintStarts.insert( const_cast<SwTxtAttr*>(pHt) ); m_HintEnds .insert( const_cast<SwTxtAttr*>(pHt) ); } |