@@ -97,7 +97,7 @@ public:
9797 // or NULL if no more
9898 // nextkey is SET to the corresponding key
9999 GHashEntry* NextEntry () { // returns a pointer to a GHashEntry
100- register int pos=fCurrentEntry ;
100+ int pos=fCurrentEntry ;
101101 while (pos<fCapacity && hash[pos].hash <0 ) pos++;
102102 if (pos==fCapacity ) {
103103 fCurrentEntry =fCapacity ;
@@ -175,7 +175,7 @@ template <class OBJ> GHash<OBJ>::GHash(bool doFree) {
175175
176176// Resize table
177177template <class OBJ > void GHash<OBJ>::Resize(int m){
178- register int i,n,p,x,h;
178+ int i,n,p,x,h;
179179 GHashEntry *k;
180180 GASSERT (fCount <=fCapacity );
181181 if (m<DEF_HASH_SIZE) m=DEF_HASH_SIZE;
@@ -211,7 +211,7 @@ template <class OBJ> void GHash<OBJ>::Resize(int m){
211211
212212template <class OBJ > OBJ* GHash<OBJ>::Add(const char * ky,
213213 OBJ* pdata, bool mrk){
214- register int p,i,x,h,n;
214+ int p,i,x,h,n;
215215 if (!ky) GError (" GHash::insert: NULL key argument.\n " );
216216 GASSERT (fCount <fCapacity );
217217 h=GSTR_HASH (ky);
@@ -296,7 +296,7 @@ template <class OBJ> OBJ* GHash<OBJ>::Add(const char* ky,
296296*/
297297template <class OBJ > OBJ* GHash<OBJ>::fAdd (const char * ky,
298298 OBJ* pdata){
299- register int p,i,x,h,n;
299+ int p,i,x,h,n;
300300 if (!ky) GError (" GHash::insert: NULL key argument.\n " );
301301 GASSERT (fCount <fCapacity );
302302 h=GSTR_HASH (ky);
@@ -356,7 +356,7 @@ template <class OBJ> OBJ* GHash<OBJ>::fAdd(const char* ky,
356356
357357template <class OBJ > OBJ* GHash<OBJ>::shkAdd(const char * ky,
358358 OBJ* pdata,bool mrk){
359- register int p,i,x,h,n;
359+ int p,i,x,h,n;
360360 if (!ky) GError (" GHash::insert: NULL key argument.\n " );
361361 GASSERT (fCount <fCapacity );
362362 h=GSTR_HASH (ky);
@@ -398,7 +398,7 @@ template <class OBJ> OBJ* GHash<OBJ>::shkAdd(const char* ky,
398398
399399// Add or replace entry
400400template <class OBJ > OBJ* GHash<OBJ>::Replace(const char * ky, OBJ* pdata, bool mrk){
401- register int p,i,x,h,n;
401+ int p,i,x,h,n;
402402 if (!ky){ GError (" GHash::replace: NULL key argument.\n " ); }
403403 GASSERT (fCount <fCapacity );
404404 h=GSTR_HASH (ky);
@@ -440,7 +440,7 @@ template <class OBJ> OBJ* GHash<OBJ>::Replace(const char* ky, OBJ* pdata, bool
440440
441441// Remove entry
442442template <class OBJ > OBJ* GHash<OBJ>::Remove(const char * ky){
443- register int p,x,h,n;
443+ int p,x,h,n;
444444 if (!ky){ GError (" GHash::remove: NULL key argument.\n " ); }
445445 OBJ* removed=NULL ;
446446 if (0 <fCount ){
@@ -477,7 +477,7 @@ template <class OBJ> OBJ* GHash<OBJ>::Remove(const char* ky){
477477
478478// Find entry
479479template <class OBJ > bool GHash<OBJ>::hasKey(const char * ky) {
480- register int p,x,h,n;
480+ int p,x,h,n;
481481 if (!ky){ GError (" GHash::find: NULL key argument.\n " ); }
482482 if (0 <fCount ){
483483 h=GSTR_HASH (ky);
@@ -501,7 +501,7 @@ template <class OBJ> bool GHash<OBJ>::hasKey(const char* ky) {
501501
502502
503503template <class OBJ > OBJ* GHash<OBJ>::Find(const char * ky, char ** keyptr){
504- register int p,x,h,n;
504+ int p,x,h,n;
505505 if (!ky){ GError (" GHash::find: NULL key argument.\n " ); }
506506 if (fCount ==0 ) return NULL ;
507507 h=GSTR_HASH (ky);
0 commit comments