summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/plugin_manager.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-01-22 02:50:20 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-01-22 02:50:20 +0000
commit80084cc18b0f22d0bfebc9f6a1271d352116529e (patch)
treed5f28d3f963d8b93500a504ffd388eccc41ae816 /libs/ardour/ardour/plugin_manager.h
parente58aba80bf1086c205cf9275de0761b5b9602710 (diff)
fix weak ordering logic for plugin statuses
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6536 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/plugin_manager.h')
-rw-r--r--libs/ardour/ardour/plugin_manager.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/ardour/plugin_manager.h b/libs/ardour/ardour/plugin_manager.h
index 7dab6b0009..8c1f960fae 100644
--- a/libs/ardour/ardour/plugin_manager.h
+++ b/libs/ardour/ardour/plugin_manager.h
@@ -80,7 +80,12 @@ class PluginManager {
}
bool operator<(const PluginStatus& other) const {
- return other.type < type || other.unique_id < unique_id;
+ if (other.type < type) {
+ return true;
+ } else if (other.type == type && other.unique_id < unique_id) {
+ return true;
+ }
+ return false;
}
};
typedef std::set<PluginStatus> PluginStatusList;