diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 15:09:27 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-19 15:09:27 +0000 |
commit | 3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 (patch) | |
tree | 5084eaa47d4874a3a573de226f19c4be072e4888 /src/configuration.cpp | |
parent | 19d5cc3a6bbbd911361b7e8b956840d0189d4c2b (diff) | |
download | mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.gz mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.bz2 mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.tar.xz mana-3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6.zip |
Reverted changeset r2269 (toString) as requested by ElvenProgrammer.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index 4085b20b..aa63f46c 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -24,13 +24,12 @@ #include "configuration.h" +#include <sstream> #include <libxml/xmlwriter.h> #include "configlistener.h" #include "log.h" -#include "utils/tostring.h" - void Configuration::init(const std::string &filename) { mConfigPath = filename; @@ -128,7 +127,9 @@ void Configuration::setValue(const std::string &key, std::string value) void Configuration::setValue(const std::string &key, float value) { - setValue(key, toString((value == (int)value) ? (int)value : value)); + std::stringstream ss; + ss << ((value == (int)value) ? (int)value : value); + setValue(key, ss.str()); } std::string Configuration::getValue(const std::string &key, std::string deflt) |