Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7225 in orxonox.OLD for trunk/src/lib/util/loading


Ignore:
Timestamp:
Mar 18, 2006, 12:04:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more std::string

Location:
trunk/src/lib/util/loading
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/loading/resource_manager.cc

    r7221 r7225  
    10091009 * @returns the Number of the Type, or 0 (defautl) if not found.
    10101010 */
    1011 ResourceType ResourceManager::stringToResourceType(const char* resourceType)
    1012 {
    1013   assert(resourceType != NULL);
     1011ResourceType ResourceManager::stringToResourceType(const std::string& resourceType)
     1012{
    10141013  for (unsigned int i = 0; i < RESOURCE_TYPE_SIZE; i++)
    1015     if (!strcmp(resourceType, ResourceManager::resourceNames[i]))
     1014    if (resourceType == ResourceManager::resourceNames[i])
    10161015      return (ResourceType)i;
    10171016  return (ResourceType)0;
  • trunk/src/lib/util/loading/resource_manager.h

    r7221 r7225  
    141141
    142142  static const char* ResourceTypeToChar(ResourceType type);
    143   static ResourceType stringToResourceType(const char* resourceType);
     143  static ResourceType stringToResourceType(const std::string& resourceType);
    144144
    145145 private:
Note: See TracChangeset for help on using the changeset viewer.