projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a39990d
)
Use static string in ARDOUR::user_config_directory
author
Tim Mayberry
<mojofunk@gmail.com>
Sat, 23 Jun 2012 05:07:16 +0000
(
05:07
+0000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Sat, 23 Jun 2012 05:07:16 +0000
(
05:07
+0000)
This code only needs to run once to determine/create users config directory
git-svn-id: svn://localhost/ardour2/branches/3.0@12838
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/filesystem_paths.cc
patch
|
blob
|
history
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");