Changeset 7627 in orxonox.OLD for branches/qt_gui/src
- Timestamp:
- May 16, 2006, 10:57:28 AM (19 years ago)
- Location:
- branches/qt_gui/src/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/qt_gui/src/lib/util/preferences.cc
r7626 r7627 137 137 * @return value of the item if found. defaultValue else 138 138 */ 139 conststd::string Preferences::getString(const std::string& section, const std::string& name, const std::string& defaultValue)139 std::string Preferences::getString(const std::string& section, const std::string& name, const std::string& defaultValue) 140 140 { 141 141 return getMultiType(section, name, MultiType(defaultValue)).getString(); … … 279 279 } 280 280 281 if ( didChanges )281 //if ( didChanges ) 282 282 { 283 283 iniParser.writeFile( this->fileName ); -
branches/qt_gui/src/lib/util/preferences.h
r7256 r7627 44 44 void setMultiType(const std::string& section, const std::string& name, const MultiType& value, bool dontSetModified = false); 45 45 46 conststd::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); 47 47 int getInt(const std::string& section, const std::string& name, int defaultValue); 48 48 float getFloat(const std::string& section, const std::string& name, float defaultValue); … … 54 54 55 55 void debug(); 56 56 57 57 std::list<std::string> listKeys( const std::string section ); 58 58
Note: See TracChangeset
for help on using the changeset viewer.