Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4767 in orxonox.OLD


Ignore:
Timestamp:
Jul 2, 2005, 11:57:47 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ini-parser small cleanup char* → const char*

Location:
orxonox/trunk/src/lib/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/util/ini_parser.cc

    r4597 r4767  
    6969   \return zero on success or -1 if the section could not be found
    7070*/
    71 int IniParser::getSection( char* section)
     71int IniParser::getSection( const char* section)
    7272{
    7373  bInSection = false;
     
    108108   \return zero if the buffers have been filled with data or -1 if there are no entries left in the current section
    109109*/
    110 int IniParser::nextVar( char* name, char* value)
     110int IniParser::nextVar( const char* name, const char* value)
    111111{
    112112  if( stream == NULL)
     
    157157   lead to unwanted behaviour.
    158158*/
    159 char* IniParser::getVar(const char* name, char* section, char* defvalue = "")
     159const char* IniParser::getVar(const char* name, const char* section, const char* defvalue = "")
    160160{
    161161  strcpy (internbuf, defvalue);
  • orxonox/trunk/src/lib/util/ini_parser.h

    r4597 r4767  
    2626  ~IniParser ();
    2727
    28   char* getVar(const char* name, char* section, char* defvalue);
     28  const char* getVar(const char* name, const char* section, const char* defvalue);
    2929  int openFile(const char* name);
    30   int getSection( char* section);
    31   int nextVar( char* name, char* value);
     30  int getSection( const char* section);
     31  int nextVar( const char* name, const char* value);
    3232
    3333 private:
Note: See TracChangeset for help on using the changeset viewer.