Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7627 in orxonox.OLD for branches/qt_gui/src


Ignore:
Timestamp:
May 16, 2006, 10:57:28 AM (19 years ago)
Author:
bensch
Message:

better or worse

Location:
branches/qt_gui/src/lib/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/util/preferences.cc

    r7626 r7627  
    137137 * @return value of the item if found. defaultValue else
    138138 */
    139 const std::string Preferences::getString(const std::string& section, const std::string& name, const std::string& defaultValue)
     139std::string Preferences::getString(const std::string& section, const std::string& name, const std::string& defaultValue)
    140140{
    141141  return getMultiType(section, name, MultiType(defaultValue)).getString();
     
    279279  }
    280280
    281   if ( didChanges )
     281  //if ( didChanges )
    282282  {
    283283    iniParser.writeFile( this->fileName );
  • branches/qt_gui/src/lib/util/preferences.h

    r7256 r7627  
    4444   void setMultiType(const std::string& section, const std::string& name, const MultiType& value, bool dontSetModified = false);
    4545
    46    const std::string getString(const std::string& section, const std::string& name, const std::string& defaultValue);
     46   std::string getString(const std::string& section, const std::string& name, const std::string& defaultValue);
    4747   int getInt(const std::string& section, const std::string& name, int defaultValue);
    4848   float getFloat(const std::string& section, const std::string& name, float defaultValue);
     
    5454
    5555   void debug();
    56    
     56
    5757   std::list<std::string> listKeys( const std::string section );
    5858
Note: See TracChangeset for help on using the changeset viewer.