From cd70cc69937afca55dcdae75578bcdd23605eb64 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Feb 2010 19:27:29 +0000 Subject: 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 --- raul/Symbol.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'raul/Symbol.hpp') 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& symbol); static std::string symbolify(const std::basic_string& str); -- cgit v1.2.1