Changeset 7221 in orxonox.OLD for trunk/src/util/fast_factory.cc
- Timestamp:
- Mar 15, 2006, 3:10:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/fast_factory.cc
r5750 r7221 29 29 * @return a new FastFactory 30 30 */ 31 FastFactory::FastFactory (ClassID classID, const char*fastFactoryName)31 FastFactory::FastFactory (ClassID classID, const std::string& fastFactoryName) 32 32 { 33 33 this->setClassID(CL_FAST_FACTORY, "FastFactory"); … … 119 119 * @returns true if found, false otherwise. 120 120 */ 121 FastFactory* FastFactory::searchFastFactory(const char*fastFactoryName)121 FastFactory* FastFactory::searchFastFactory(const std::string& fastFactoryName) 122 122 { 123 123 if (FastFactory::first == NULL) … … 128 128 while (tmpFac != NULL) 129 129 { 130 if ( strcmp(tmpFac->getName(), fastFactoryName))130 if (fastFactoryName == tmpFac->getName()) 131 131 return tmpFac; 132 132 tmpFac = tmpFac->next;
Note: See TracChangeset
for help on using the changeset viewer.