summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp7
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)