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
|
std::string
|
||||||
user_config_directory (int version)
|
user_config_directory (int version)
|
||||||
{
|
{
|
||||||
static std::string p;
|
std::string p;
|
||||||
|
|
||||||
if (!p.empty()) return p;
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user