diff options
author | chatty | 1996-03-11 16:49:27 +0000 |
---|---|---|
committer | chatty | 1996-03-11 16:49:27 +0000 |
commit | 1e6723ff1692f266d668d45eebbe49a038e96964 (patch) | |
tree | 802d37bb1af25a9527b3ac9dfaa9de069cbbadc5 /utils/HashTable.h | |
parent | 48a66d166ea5ad246a3f04d43fde7ec98ae28c9f (diff) | |
download | ivy-league-1e6723ff1692f266d668d45eebbe49a038e96964.zip ivy-league-1e6723ff1692f266d668d45eebbe49a038e96964.tar.gz ivy-league-1e6723ff1692f266d668d45eebbe49a038e96964.tar.bz2 ivy-league-1e6723ff1692f266d668d45eebbe49a038e96964.tar.xz |
Eliminated bogus call to constructor in CcuHashIterOf::operator ++
Diffstat (limited to 'utils/HashTable.h')
-rw-r--r-- | utils/HashTable.h | 3 |
1 files changed, 1 insertions, 2 deletions
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 ITEM> class CcuHashIterOf : public CcuHashIter { public: inline CcuHashIterOf (const CcuHashTableOf<ITEM>& t) : CcuHashIter (t) { } inline ~CcuHashIterOf () {} -inline CcuHashIterOf<ITEM>& operator ++ () { ++((CcuHashIter) (*this)); return *this; } +inline CcuHashIterOf<ITEM>& operator ++ () { return (CcuHashIterOf<ITEM>&)(this->CcuHashIter::operator ++ ()); } inline ITEM* operator * () const { return (ITEM*) (CcuHashIter::operator * ()); } }; |