projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use static string in ARDOUR::user_config_directory
[ardour.git]
/
libs
/
ardour
/
filesystem_paths.cc
diff --git
a/libs/ardour/filesystem_paths.cc
b/libs/ardour/filesystem_paths.cc
index cd78397f3e6e98b7d01939d93b9f3f7f2c91ae8e..73bfaff137f726c0b9854d9516d552ebf8d7e958 100644
(file)
--- a/
libs/ardour/filesystem_paths.cc
+++ b/
libs/ardour/filesystem_paths.cc
@@
-39,7
+39,9
@@
using std::string;
std::string
user_config_directory ()
{
- std::string p;
+ static std::string p;
+
+ if (!p.empty()) return p;
#ifdef __APPLE__
p = Glib::build_filename (Glib::get_home_dir(), "Library/Preferences");