diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index 457566080..5515c769a 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -240,7 +240,11 @@ protected: // // NOTE: ITEM must public inherit from chronIntIdRes // -typedef intId chronIntId; +class chronIntId : public intId +{ +public: + chronIntId ( const unsigned &idIn ); +}; template class chronIntIdResTable : public resTable { @@ -289,6 +293,7 @@ public: static const unsigned minIndexBitWidth (); private: + stringId & operator = ( const stringId & ); const char * pStr; const allocationType allocType; static const unsigned char fastHashPermutedIndexSpace[256]; @@ -305,7 +310,7 @@ template resTable::resTable (unsigned nHashTableEntries) : nInUse (0) { - unsigned nbits, mask; + unsigned nbits, mask = 0u; // // count the number of bits in the hash index @@ -602,6 +607,8 @@ inline T * resTableIter::operator () () ////////////////////////////////////////////// // chronIntIdResTable member functions ////////////////////////////////////////////// +inline chronIntId::chronIntId ( const unsigned &idIn ) : + intId ( idIn ) {} // // chronIntIdResTable::chronIntIdResTable()