summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2016-02-01 20:17:13 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2016-03-01 23:51:05 +0100
commit4845155e0126571e4176819c5f27b76160146ce0 (patch)
treedceff32b38e6aa9e43b6f0d746844ab754f661f8 /tools
parent02caf16fc7d0455a235341966db89c77cbf1da0d (diff)
UniqueIndexImpl::size() is unneeded
Change-Id: I36c4d80ecf3ba3c88c98f5ad0a3fc1728332b25b
Diffstat (limited to 'tools')
-rw-r--r--tools/source/memtools/unqidx.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx
index 38b9cc96ee00..8d7ed1ce399c 100644
--- a/tools/source/memtools/unqidx.cxx
+++ b/tools/source/memtools/unqidx.cxx
@@ -49,7 +49,7 @@ void* UniqueIndexImpl::Remove( sal_uIntPtr nIndex )
{
// Check for valid index
if ( (nIndex >= nStartIndex) &&
- (nIndex < (size() + nStartIndex)) )
+ (nIndex < (maMap.size() + nStartIndex)) )
{
// insert index as empty entry, and reduce indexcount,
// if this entry was used
@@ -69,7 +69,7 @@ void* UniqueIndexImpl::Get( sal_uIntPtr nIndex ) const
{
// check for valid index
if ( (nIndex >= nStartIndex) &&
- (nIndex < (size() + nStartIndex)) )
+ (nIndex < (maMap.size() + nStartIndex)) )
{
std::map<sal_uInt32, void*>::const_iterator it = maMap.find( nIndex - nStartIndex );
if( it != maMap.end() )