diff options
author | Richard Nelson <richard@lindenlab.com> | 2011-07-26 18:54:07 -0700 |
---|---|---|
committer | Richard Nelson <richard@lindenlab.com> | 2011-07-26 18:54:07 -0700 |
commit | 75d2382dc3fd1beb190eba12188883db98278f89 (patch) | |
tree | f13889ed6ead09ca418219a118198ef60f1e9745 /indra/llcommon/llinstancetracker.h | |
parent | 9b6fbf8d5778b2a01ee24d7c7b8ddd0c405e9458 (diff) |
fixed build
Diffstat (limited to 'indra/llcommon/llinstancetracker.h')
-rw-r--r-- | indra/llcommon/llinstancetracker.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/llcommon/llinstancetracker.h b/indra/llcommon/llinstancetracker.h index 1ac6629f8a..47041f790f 100644 --- a/indra/llcommon/llinstancetracker.h +++ b/indra/llcommon/llinstancetracker.h @@ -73,12 +73,12 @@ public: void increment() { mIterator++; } bool equal(instance_iter const& other) const { - return mIterator == other.m_iterator; + return mIterator == other.mIterator; } T& dereference() const { - return mIterator->second; + return *(mIterator->second); } typename InstanceMap::iterator mIterator; @@ -102,14 +102,14 @@ public: friend class boost::iterator_core_access; void increment() { mIterator++; } - bool equal(instance_iter const& other) const + bool equal(key_iter const& other) const { - return mIterator == other.m_iterator; + return mIterator == other.mIterator; } KEY& dereference() const { - return mIterator->first; + return const_cast<KEY&>(mIterator->first); } typename InstanceMap::iterator mIterator; |