diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-07-20 19:22:48 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-07-22 23:50:42 +0200 |
commit | 3621e2d9e16be46b28c26ca9278b91b94dbbd762 (patch) | |
tree | 4b48d53a2a468bfaf6f7a63aca8d80755d44368a /sw/source/core/txtnode/ndhints.cxx | |
parent | 05dda9a913122a7d9f5715868824c487da0d2534 (diff) |
SwpHints::GetPos just used to check presence => renamed to Contains
Change-Id: I46a61422dc4299fb4b747dd838d25e63424dd3be
Diffstat (limited to 'sw/source/core/txtnode/ndhints.cxx')
-rw-r--r-- | sw/source/core/txtnode/ndhints.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/ndhints.cxx b/sw/source/core/txtnode/ndhints.cxx index 25160398831d..ea5f4d8a7ba4 100644 --- a/sw/source/core/txtnode/ndhints.cxx +++ b/sw/source/core/txtnode/ndhints.cxx @@ -126,7 +126,7 @@ void SwpHintsArray::DeleteAtPos( const size_t nPos ) (void) done; // unused in NDEBUG } -size_t SwpHintsArray::GetPos( const SwTxtAttr *pHt ) const +bool SwpHintsArray::Contains( const SwTxtAttr *pHt ) const { // DO NOT use find() here! // if called from SwTxtNode::InsertItem, pHt has already been deleted, @@ -135,10 +135,10 @@ size_t SwpHintsArray::GetPos( const SwTxtAttr *pHt ) const { if (m_HintStarts[i] == pHt) { - return i; + return true; } } - return SAL_MAX_SIZE; + return false; } #ifdef DBG_UTIL |