efficiency is overrated - don't cache the return value of user_config_directory_name() since it can be called with different arguments
This commit is contained in:
parent
f9ce27fd65
commit
59880b7fa3
@ -61,9 +61,7 @@ user_config_directory_name (int version = -1)
|
||||
std::string
|
||||
user_config_directory (int version)
|
||||
{
|
||||
static std::string p;
|
||||
|
||||
if (!p.empty()) return p;
|
||||
std::string p;
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user