summaryrefslogtreecommitdiff
path: root/include/tools/unqidx.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/unqidx.hxx')
-rw-r--r--include/tools/unqidx.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/tools/unqidx.hxx b/include/tools/unqidx.hxx
index 9042476961ce..27de75f26515 100644
--- a/include/tools/unqidx.hxx
+++ b/include/tools/unqidx.hxx
@@ -25,18 +25,21 @@
#define UNIQUEINDEX_ENTRY_NOTFOUND CONTAINER_ENTRY_NOTFOUND
-class TOOLS_DLLPUBLIC SAL_WARN_UNUSED UniqueIndexImpl : public std::map<sal_uInt32, void*>
+class TOOLS_DLLPUBLIC SAL_WARN_UNUSED UniqueIndexImpl
{
private:
+ std::map<sal_uInt32, void*> maMap;
sal_uIntPtr nStartIndex;
sal_uIntPtr nUniqIndex;
sal_uIntPtr nCount;
public:
UniqueIndexImpl( sal_uIntPtr _nStartIndex = 0 )
- : std::map<sal_uInt32, void*>(),
+ : maMap(),
nStartIndex(_nStartIndex), nUniqIndex(_nStartIndex), nCount(0) {}
+ size_t size() const { return maMap.size(); }
+
sal_uIntPtr Insert( void* p );
// insert value with key, replacing existing entry if necessary
void Insert( sal_uIntPtr aIndex, void* p );