Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/parser/ini_parser/ini_parser.cc

    r9406 r9869  
    2929
    3030#ifdef DEBUG_LEVEL
    31  #include "../../../defs/debug.h"
     31 #include "../../../lib/util/debug.h"
    3232#else
    3333 #define PRINTF(x) printf
     
    165165      else if( (ptr = strchr( lineBegin, '=')) != NULL)
    166166      {
    167         if (currentSection == NULL)
     167        if (currentSection == this->sections.end())
    168168        {
    169169          PRINTF(2)("Not in a Section yet for %s\n", lineBegin);
     
    470470  {
    471471    std::list<IniEntry>::const_iterator entry = this->getEntryIT(entryName, sectionName);
    472     if (entry != NULL &&  (*entry).name == entryName)
     472    if (/** FIXME entry != NULL && */  (*entry).name == entryName)
    473473      return (*entry).value;
    474474    PRINTF(2)("Entry '%s' in section '%s' not found.\n", entryName.c_str(), sectionName.c_str());
     
    627627      if ((*entry).name == entryName)
    628628        break;
    629   if (entry == (*section).entries.end())
    630     return NULL;
    631   else
    632     return entry;
     629  return entry;
    633630}
    634631
     
    650647      if ((*entry).name == entryName)
    651648        break;
    652   if (entry == (*section).entries.end())
    653     return NULL;
    654   else
    655     return entry;
     649  return entry;
    656650}
    657651
Note: See TracChangeset for help on using the changeset viewer.