projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PluginInfo::type added to copy constructor. But why is the copy constructor defined...
[ardour.git]
/
libs
/
ardour
/
utils.cc
diff --git
a/libs/ardour/utils.cc
b/libs/ardour/utils.cc
index 684c4b49f6956a688b2658c189ec571d776a0fc6..98b51cb5786be34d9922d65ef1ea4a724c69d9ac 100644
(file)
--- a/
libs/ardour/utils.cc
+++ b/
libs/ardour/utils.cc
@@
-582,6
+582,14
@@
ARDOUR::auto_style_to_string (AutoStyle as)
return "";
}
return "";
}
+bool
+string_is_affirmative (const std::string& str)
+{
+ /* to be used only with XML data - not intended to handle user input */
+
+ return str == "1" || str == "y" || str == "Y" || (!g_strncasecmp(str.c_str(), "yes", str.length()));
+}
+
extern "C" {
void c_stacktrace() { stacktrace (cerr); }
}
extern "C" {
void c_stacktrace() { stacktrace (cerr); }
}