From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/configuration.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/configuration.cpp') diff --git a/src/configuration.cpp b/src/configuration.cpp index da80e9f8f..f70af1c3e 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -300,7 +300,7 @@ unsigned ConfigurationObject::getValue(const std::string &key, { GETLOG(); const Options::const_iterator iter = mOptions.find(key); - return (iter != mOptions.end()) ? static_cast( + return (iter != mOptions.end()) ? CAST_U32( atol(iter->second.c_str())) : deflt; } @@ -441,7 +441,7 @@ int Configuration::getIntValue(const std::string &key) const } else if (type == VariableData::DATA_FLOAT) { - defaultValue = static_cast( + defaultValue = CAST_S32( (static_cast(data))->getData()); } } @@ -635,7 +635,7 @@ bool Configuration::getBoolValue(const std::string &key) const } if (type == VariableData::DATA_FLOAT) { - if (static_cast((static_cast( + if (CAST_S32((static_cast( data))->getData()) != 0) { defaultValue = true; -- cgit v1.2.3-60-g2f50