perform initialization in the initializer

cppcheck (via Codacy) pointed out it's sorta silly to default initialize then immediately assign a non-default value.
This commit is contained in:
Gregory A Lundberg 2018-01-24 22:06:08 -06:00
parent 2e1dbfc235
commit 84194f76ef
No known key found for this signature in database
GPG Key ID: 149484078AE8AE9E

View File

@ -47,14 +47,8 @@ config_cache::config_cache()
, use_cache_(true)
, fake_invalid_cache_(false)
, defines_map_()
, cache_file_prefix_()
, cache_file_prefix_("cache-v" + boost::algorithm::replace_all_copy(game_config::revision, ":", "_") + "-")
{
cache_file_prefix_
= "cache-v" +
boost::algorithm::replace_all_copy(game_config::revision,
":", "_") +
"-";
// To set-up initial defines map correctly
clear_defines();
}