Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

fixed some bugs

Location:
branches/std/src/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/parser/ini_parser/ini_parser.cc

    r7205 r7206  
    5656{
    5757  this->deleteSections();
    58   this->setFileName(NULL);
     58  this->setFileName("");
    5959}
    6060
     
    7171
    7272  this->currentSection = this->sections.end();
    73   this->setFileName(NULL);
     73  this->setFileName("");
    7474}
    7575
  • branches/std/src/lib/particles/particle_system.cc

    r7199 r7206  
    485485void ParticleSystem::debug() const
    486486{
    487   PRINT(0)("  ParticleCount: %d emitters: %d, maximumCount: %d :: filled %d%%\n", this->count, this->emitters.size(), this->maxCount, 100*this->count/this->maxCount);
     487  PRINT(0)("  ParticleCount: %d emitters: %d, maximumCount: %d :: filled %d%%\n", this->count, this->emitters.size(), this->maxCount, ((this->maxCount!=0)?100*this->count/this->maxCount:0));
    488488  if (deadList)
    489489  {
  • 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.