From 3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sun, 19 Mar 2006 15:09:27 +0000 Subject: Reverted changeset r2269 (toString) as requested by ElvenProgrammer. --- src/configuration.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/configuration.cpp') 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 #include #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) -- cgit v1.2.3-70-g09d2