summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
Diffstat (limited to 'svl')
-rw-r--r--svl/source/inc/poolio.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svl/source/inc/poolio.hxx b/svl/source/inc/poolio.hxx
index 2939d50aaf2f..971fb86c9b1d 100644
--- a/svl/source/inc/poolio.hxx
+++ b/svl/source/inc/poolio.hxx
@@ -133,7 +133,8 @@ public:
assert(false && "did not find item?");
break;
}
- if (**sortIt == *pNeedle)
+ // need to compare by pointer here, since we might have duplicates
+ if (*sortIt == pNeedle)
{
maSortablePoolItems.erase(sortIt);
break;
@@ -141,7 +142,7 @@ public:
++sortIt;
}
}
- return maPoolItemSet.erase(it);
+ maPoolItemSet.erase(it);
}
};