Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7236 in orxonox.OLD for branches/preferences/src/lib/parser


Ignore:
Timestamp:
Mar 21, 2006, 4:13:56 PM (19 years ago)
Author:
rennerc
Message:

converted char* in preferences to std::string

Location:
branches/preferences/src/lib/parser/preferences
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/src/lib/parser/preferences/ini_file_prefs_reader.cc

    r7234 r7236  
    2424 * standard constructor
    2525*/
    26 IniFilePrefsReader::IniFilePrefsReader ( const char * fileName )
     26IniFilePrefsReader::IniFilePrefsReader ( const std::string& fileName )
    2727{
    2828  IniParser iniParser;
     
    4141      prefs->setString( iniParser.getCurrentSection(), iniParser.getCurrentName(), iniParser.getCurrentValue(), true );
    4242    } while (iniParser.nextVar());
    43   } while (iniParser.nextSection()!=NULL);
     43  } while ( iniParser.nextSection() != "" );
    4444
    4545  /*iniParser.firstVar();
  • branches/preferences/src/lib/parser/preferences/ini_file_prefs_reader.h

    r7234 r7236  
    1515
    1616 public:
    17    IniFilePrefsReader(const char* fileName);
     17   IniFilePrefsReader(const std::string& fileName);
    1818   virtual ~IniFilePrefsReader();
    1919
Note: See TracChangeset for help on using the changeset viewer.