summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-03 19:27:29 +0000
committerDavid Robillard <d@drobilla.net>2010-02-03 19:27:29 +0000
commitcd70cc69937afca55dcdae75578bcdd23605eb64 (patch)
tree638df5c8f20d059d26f1bb09e8850f6d90843003 /raul
parent6476e54f48d1642e1c7cb55277c8f564dfe25bb6 (diff)
downloadraul-cd70cc69937afca55dcdae75578bcdd23605eb64.tar.gz
raul-cd70cc69937afca55dcdae75578bcdd23605eb64.tar.bz2
raul-cd70cc69937afca55dcdae75578bcdd23605eb64.zip
Make human names work with LADSPA plugins as well (fix ticket #477).
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2416 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-rw-r--r--raul/Symbol.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/raul/Symbol.hpp b/raul/Symbol.hpp
index 1a57886..be2fa61 100644
--- a/raul/Symbol.hpp
+++ b/raul/Symbol.hpp
@@ -74,6 +74,10 @@ public:
return _str != other._str;
}
+ inline bool operator<(const Symbol& other) const {
+ return strcmp(_str, other._str) < 0;
+ }
+
static bool is_valid(const std::basic_string<char>& symbol);
static std::string symbolify(const std::basic_string<char>& str);