projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2e32ef
)
Use PBD::to_string() in LV2Plugin instead of string_compose for state_dir
author
Tim Mayberry
<mojofunk@gmail.com>
Tue, 27 Sep 2016 06:33:05 +0000
(16:33 +1000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Tue, 18 Apr 2017 23:37:01 +0000
(09:37 +1000)
To prevent issues with numeric grouping with formatting used by string_compose
template/stringstream when global C++ locale != "C"
libs/ardour/lv2_plugin.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/lv2_plugin.cc
b/libs/ardour/lv2_plugin.cc
index 00353fb2432de15f56668ca8b55cad64e2d8ed1c..c48a2a261b27fc7bca76c20008f66fa10e65492d 100644
(file)
--- a/
libs/ardour/lv2_plugin.cc
+++ b/
libs/ardour/lv2_plugin.cc
@@
-1264,7
+1264,7
@@
LV2Plugin::file_dir() const
const std::string
LV2Plugin::state_dir(unsigned num) const
{
- return Glib::build_filename(plugin_dir(), string
_compose("state%1",
num));
+ return Glib::build_filename(plugin_dir(), string
("state") + PBD::to_string (
num));
}
/** Implementation of state:makePath for files created at instantiation time.