Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7206 in orxonox.OLD for branches/std/src/lib/util


Ignore:
Timestamp:
Mar 9, 2006, 10:12:18 PM (18 years ago)
Author:
rennerc
Message:

fixed some bugs

Location:
branches/std/src/lib/util/loading
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/util/loading/load_param.cc

    r7203 r7206  
    234234
    235235  if (root == NULL)
    236     return NULL;
     236    return "";
    237237
    238238  element = root->FirstChildElement( parameterName);
    239   if( element == NULL) return NULL;
     239  if( element == NULL) return "";
    240240
    241241  node = element->FirstChild();
     
    245245    node = node->NextSibling();
    246246  }
    247   return NULL;
     247  return "";
    248248}
    249249
  • branches/std/src/lib/util/loading/resource_manager.cc

    r7204 r7206  
    888888{
    889889  if (fileName.empty() || ResourceManager::getInstance()->getDataDir().empty())
    890     return NULL;
     890    return "";
    891891
    892892  std::string retName = ResourceManager::getInstance()->getDataDir() +fileName;
     
    894894    return retName;
    895895  else
    896     return NULL;
     896    return "";
    897897}
    898898
Note: See TracChangeset for help on using the changeset viewer.