summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
commit9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch)
tree798117abd4dc7e610997d59d530a96ddc1509f53 /src/configuration.cpp
parent4429cb14e9e187edef27aba692a4266733f79c17 (diff)
downloadmv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp6
1 files changed, 3 insertions, 3 deletions
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<unsigned>(
+ 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<int>(
+ defaultValue = CAST_S32(
(static_cast<const FloatData*>(data))->getData());
}
}
@@ -635,7 +635,7 @@ bool Configuration::getBoolValue(const std::string &key) const
}
if (type == VariableData::DATA_FLOAT)
{
- if (static_cast<int>((static_cast<const FloatData*>(
+ if (CAST_S32((static_cast<const FloatData*>(
data))->getData()) != 0)
{
defaultValue = true;