From 1e6723ff1692f266d668d45eebbe49a038e96964 Mon Sep 17 00:00:00 2001 From: chatty Date: Mon, 11 Mar 1996 16:49:27 +0000 Subject: Eliminated bogus call to constructor in CcuHashIterOf::operator ++ --- utils/HashTable.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/HashTable.h b/utils/HashTable.h index 2db7b93..5a0ab29 100644 --- a/utils/HashTable.h +++ b/utils/HashTable.h @@ -148,7 +148,6 @@ public: inline CcuHashIter (const CcuHashTable& t) : CcuHashCellIter (t) { } inline ~CcuHashIter () {} -//inline CcuHashIter& operator ++ () { ++((CcuHashCellIter) (*this)); return *this; } inline CcuHashIter& operator ++ () { return (CcuHashIter&)(this->CcuHashCellIter::operator ++ ()); } inline CcuHashItem* operator * () const { return CurCell ? CurCell->GetInfo () : 0; } }; @@ -207,7 +206,7 @@ template class CcuHashIterOf : public CcuHashIter { public: inline CcuHashIterOf (const CcuHashTableOf& t) : CcuHashIter (t) { } inline ~CcuHashIterOf () {} -inline CcuHashIterOf& operator ++ () { ++((CcuHashIter) (*this)); return *this; } +inline CcuHashIterOf& operator ++ () { return (CcuHashIterOf&)(this->CcuHashIter::operator ++ ()); } inline ITEM* operator * () const { return (ITEM*) (CcuHashIter::operator * ()); } }; -- cgit v1.1