diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-03-05 09:48:11 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2016-03-05 11:32:11 +0100 |
commit | ae35981823114d51376bf86bf1db665db62482c3 (patch) | |
tree | c9b62423ad0e6b8d6c68e8270a5241dce6d90abc /include/tools | |
parent | 9f7f577df3bc056c77d63aafa26e4d21c53af0aa (diff) |
Do not duplicate count of items
Change-Id: I373b39f36fee7c37f2c10cc748f309412d68b688
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/unqidx.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/tools/unqidx.hxx b/include/tools/unqidx.hxx index 190b8e10e212..b6d65b4db3ec 100644 --- a/include/tools/unqidx.hxx +++ b/include/tools/unqidx.hxx @@ -33,12 +33,11 @@ private: std::map<Index, void*> maMap; const Index nStartIndex; Index nUniqIndex; - Index nCount; public: UniqueIndexImpl( Index _nStartIndex = 0 ) : maMap(), - nStartIndex(_nStartIndex), nUniqIndex(_nStartIndex), nCount(0) {} + nStartIndex(_nStartIndex), nUniqIndex(_nStartIndex) {} Index Insert( void* p ); // insert value with key, replacing existing entry if necessary |