diff options
author | David Robillard <d@drobilla.net> | 2010-02-03 19:27:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-03 19:27:29 +0000 |
commit | cd70cc69937afca55dcdae75578bcdd23605eb64 (patch) | |
tree | 638df5c8f20d059d26f1bb09e8850f6d90843003 | |
parent | 6476e54f48d1642e1c7cb55277c8f564dfe25bb6 (diff) | |
download | raul-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
-rw-r--r-- | raul/Symbol.hpp | 4 |
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); |