mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 18:08:14 +00:00
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:
parent
2e1dbfc235
commit
84194f76ef
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user