diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx index 3d60fb847a1c..ea3b773c6b79 100644 --- a/tools/source/memtools/unqidx.cxx +++ b/tools/source/memtools/unqidx.cxx @@ -48,8 +48,7 @@ UniqueIndexImpl::Index UniqueIndexImpl::Insert( void* p ) void* UniqueIndexImpl::Remove( Index nIndex ) { // Check for valid index - if ( (nIndex >= nStartIndex) && - (nIndex < (maMap.size() + nStartIndex)) ) + if ( nIndex >= nStartIndex ) { // insert index as empty entry, and reduce indexcount, // if this entry was used @@ -68,8 +67,7 @@ void* UniqueIndexImpl::Remove( Index nIndex ) void* UniqueIndexImpl::Get( Index nIndex ) const { // check for valid index - if ( (nIndex >= nStartIndex) && - (nIndex < (maMap.size() + nStartIndex)) ) + if ( nIndex >= nStartIndex ) { std::map::const_iterator it = maMap.find( nIndex - nStartIndex ); if( it != maMap.end() )