Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7213 in orxonox.OLD


Ignore:
Timestamp:
Mar 10, 2006, 1:18:54 PM (18 years ago)
Author:
bensch
Message:

oxonox/std: minor fix

File:
1 edited

Legend:

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

    r7206 r7213  
    134134      while((*lineBegin == ' ' || *lineBegin == '\t') && lineBegin < lineBuffer + strlen(lineBuffer))
    135135        ++lineBegin;
    136      
     136
    137137      if ( !strcmp( lineBegin, "" ) )
    138138        continue;
     
    186186          --nameEnd;
    187187        nameEnd[1] = '\0';
    188        
     188
    189189        this->addVar(lineBegin, valueBegin);
    190190        this->setEntryComment();
     
    258258  if (sectionName.empty())
    259259    return false;
    260   this->sections.push_back(IniSection());
    261   this->sections.back().comment = "";
    262   this->sections.back().name = sectionName;
     260  IniSection newSection;
     261  newSection.name = sectionName;
     262  newSection.comment = "";
     263
     264  this->sections.push_back(newSection);
    263265
    264266  this->currentSection = --this->sections.end();
     
    409411      return (*entry).value;
    410412    PRINTF(2)("Entry '%s' in section '%s' not found.\n", entryName.c_str(), sectionName.c_str());
    411 
    412413  }
    413414  else
Note: See TracChangeset for help on using the changeset viewer.