diff --git a/tjsHashSearch.h b/tjsHashSearch.h index 44c0b20..d3256ba 100644 --- a/tjsHashSearch.h +++ b/tjsHashSearch.h @@ -36,7 +36,7 @@ class tTJSHashFunc { const char *p = (const char*)&val; const char *plim = (const char*)&val + sizeof(T); - register tjs_uint32 ret = 0; + tjs_uint32 ret = 0; while(p void Add(const KeyT &key, const ValueT &value) { inherited::Add(key, value); - if(GetCount() > MaxCount) + if(inherited::GetCount() > MaxCount) { - ChopLast(GetCount() - MaxCount); + inherited::ChopLast(inherited::GetCount() - MaxCount); } } void AddWithHash(const KeyT &key, tjs_uint32 hash, const ValueT &value) { inherited::AddWithHash(key, hash, value); - if(GetCount() > MaxCount) + if(inherited::GetCount() > MaxCount) { - ChopLast(GetCount() - MaxCount); + inherited::ChopLast(inherited::GetCount() - MaxCount); } } void SetMaxCount(tjs_uint maxcount) { MaxCount = maxcount; - if(GetCount() > MaxCount) + if(inherited::GetCount() > MaxCount) { - ChopLast(GetCount() - MaxCount); + inherited::ChopLast(inherited::GetCount() - MaxCount); } }