--- parser3/src/include/pa_hash.h 2009/07/08 09:03:18 1.76 +++ parser3/src/include/pa_hash.h 2009/07/29 05:01:46 1.78 @@ -17,7 +17,7 @@ #ifndef PA_HASH_H #define PA_HASH_H -static const char * const IDENT_HASH_H="$Date: 2009/07/08 09:03:18 $"; +static const char * const IDENT_HASH_H="$Date: 2009/07/29 05:01:46 $"; #include "pa_memory.h" #include "pa_types.h" @@ -846,7 +846,7 @@ public: /// iterate over all pairs template void for_each(void callback(K, V, I), I info) const { #ifdef HASH_ORDER - for(Pair *pair=first; pair; pair=pair->next) + for(Pair *pair=this->first; pair; pair=pair->next) callback(pair->key, pair->value, info); #else Pair **ref=this->refs; @@ -859,7 +859,7 @@ public: /// iterate over all pairs template void for_each_ref(void callback(K, V&, I), I info) const { #ifdef HASH_ORDER - for(Pair *pair=first; pair; pair=pair->next) + for(Pair *pair=this->first; pair; pair=pair->next) callback(pair->key, pair->value, info); #else Pair **ref=this->refs; @@ -885,11 +885,11 @@ public: return V(0); } }; -#else +#else //HASH_CODE_CACHING template class HASH_STRING: public HASH{}; -#endif +#endif //HASH_CODE_CACHING #ifndef HASH_ORDER /// Auto-object used to temporarily substituting/removing string hash values