diff --git a/src/cxxTemplates/test/resourceLibTest.cc b/src/cxxTemplates/test/resourceLibTest.cc index 8217c77cc..c7a1916a4 100644 --- a/src/cxxTemplates/test/resourceLibTest.cc +++ b/src/cxxTemplates/test/resourceLibTest.cc @@ -19,7 +19,7 @@ void empty(); class albert : public intId, public tsSLNode { public: albert (resTable< albert, intId > &atIn, unsigned idIn) : - at(atIn), intId(idIn) {} + intId(idIn), at(atIn) {} void show (unsigned /* level */) { } @@ -35,7 +35,7 @@ private: class fred : public intId, public tsSLNode { public: fred (const char *pNameIn, unsigned idIn) : - pName(pNameIn), intId(idIn) {} + intId(idIn), pName(pNameIn) {} void show (unsigned) { printf("fred %s\n", pName); @@ -89,7 +89,7 @@ int main() unsigned i; clock_t start, finish; double duration; - const int LOOPS = 50000; + const unsigned LOOPS = 50000; resTable > intTbl (8); resTable strTbl (8); fred fred0("fred0",0); diff --git a/src/libCom/cxxTemplates/test/resourceLibTest.cc b/src/libCom/cxxTemplates/test/resourceLibTest.cc index 8217c77cc..c7a1916a4 100644 --- a/src/libCom/cxxTemplates/test/resourceLibTest.cc +++ b/src/libCom/cxxTemplates/test/resourceLibTest.cc @@ -19,7 +19,7 @@ void empty(); class albert : public intId, public tsSLNode { public: albert (resTable< albert, intId > &atIn, unsigned idIn) : - at(atIn), intId(idIn) {} + intId(idIn), at(atIn) {} void show (unsigned /* level */) { } @@ -35,7 +35,7 @@ private: class fred : public intId, public tsSLNode { public: fred (const char *pNameIn, unsigned idIn) : - pName(pNameIn), intId(idIn) {} + intId(idIn), pName(pNameIn) {} void show (unsigned) { printf("fred %s\n", pName); @@ -89,7 +89,7 @@ int main() unsigned i; clock_t start, finish; double duration; - const int LOOPS = 50000; + const unsigned LOOPS = 50000; resTable > intTbl (8); resTable strTbl (8); fred fred0("fred0",0);