From 7e0a97d2521b9ce57003176e82a0b5564aa003c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jul 2012 23:26:59 +0300 Subject: Fix more code style and additional warnings. --- src/configuration.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/configuration.cpp') diff --git a/src/configuration.cpp b/src/configuration.cpp index 684468997..defa38812 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -507,8 +507,9 @@ float Configuration::getFloatValue(const std::string &key) const else if (itdef->second->getType() == VariableData::DATA_STRING) { - defaultValue = atof((static_cast( - itdef->second))->getData().c_str()); + defaultValue = static_cast(atof(( + static_cast( + itdef->second))->getData().c_str())); } else if (itdef->second->getType() == VariableData::DATA_BOOL) @@ -526,8 +527,8 @@ float Configuration::getFloatValue(const std::string &key) const else if (itdef->second->getType() == VariableData::DATA_INT) { - defaultValue = (static_cast( - itdef->second))->getData(); + defaultValue = static_cast((static_cast( + itdef->second))->getData()); } } else -- cgit v1.2.3-60-g2f50