Changeset 8316 in orxonox.OLD for trunk/src/lib/util
- Timestamp:
- Jun 11, 2006, 1:57:27 PM (19 years ago)
- Location:
- trunk/src/lib/util
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/loading/dynamic_loader.cc
r7355 r8316 60 60 } 61 61 void *mkr = dlsym( this->handle, "maker"); 62 return (mkr != NULL); 62 63 } 63 64 … … 72 73 } 73 74 // void *mkr = dlsym("maker"); 74 75 return true; 75 76 } 76 77 … … 78 79 BaseObject* DynamicLoader::fabricateObject(const TiXmlElement* root) const 79 80 { 81 /// FIXME 82 return NULL; 80 83 } 81 84 #endif -
trunk/src/lib/util/loading/load_param.cc
r7721 r8316 29 29 */ 30 30 CLoadParam::CLoadParam(const TiXmlElement* root, const std::string& paramName, BaseObject* object, Executor* executor, bool inLoadCycle) 31 : paramName(paramName), object(object)31 : object(object), paramName(paramName) 32 32 { 33 33 this->object = object; -
trunk/src/lib/util/loading/load_param_description.cc
r7221 r8316 275 275 276 276 return retVal;*/ 277 } 277 std::list<std::string> a; 278 return a; 279 } -
trunk/src/lib/util/loading/resource_manager.cc
r7676 r8316 557 557 bool ResourceManager::unloadAllByPriority(ResourcePriority prio) 558 558 { 559 bool removedAll = true; 559 560 unsigned int removeCount; 560 561 for (unsigned int round = 0; round < 3; round++) … … 571 572 { 572 573 if (round == 3) 574 { 573 575 PRINTF(2)("unable to unload %s because there are still %d references to it\n", 574 576 this->resourceList[index]->name.c_str(), this->resourceList[index]->count); 577 removedAll = false; 578 } 575 579 removeCount++; 576 580 } … … 580 584 if (removeCount == 0) break; 581 585 } 586 return removedAll; 582 587 } 583 588 … … 711 716 } 712 717 return tmp;*/ 718 return ""; 713 719 } 714 720 … … 733 739 return this->cache(splits[1], ResourceManager::stringToResourceType(splits[0]), 734 740 RP_LEVEL, splits[2], splits[3], splits[4]);*/ 741 return false; 735 742 } 736 743 -
trunk/src/lib/util/multi_type.cc
r8035 r8316 160 160 case MT_STRING: 161 161 return (this->storedString == mt.storedString); 162 default: 163 return false; 162 164 } 163 165 } … … 190 192 this->setString(this->getString()); 191 193 break; 194 default: 195 this->type = type; 192 196 } 193 197 } … … 477 481 case MT_STRING: 478 482 return MultiType::typeNames[5]; 479 } 480 return MultiType::typeNames[0]; 483 default: 484 return MultiType::typeNames[0]; 485 } 481 486 } 482 487
Note: See TracChangeset
for help on using the changeset viewer.