summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ardour/plugin.h4
-rw-r--r--libs/ardour/plugin.cc7
2 files changed, 5 insertions, 6 deletions
diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h
index 8839393b72..560ad06e39 100644
--- a/libs/ardour/ardour/plugin.h
+++ b/libs/ardour/ardour/plugin.h
@@ -30,14 +30,12 @@
#include <ardour/plugin_state.h>
#include <ardour/cycles.h>
-#include <list>
#include <vector>
#include <set>
#include <map>
using std::string;
using std::vector;
-using std::list;
using std::set;
using std::map;
@@ -128,7 +126,7 @@ class Plugin : public Stateful, public sigc::trackable
virtual bool save_preset(string name) = 0;
virtual bool load_preset (const string preset_label);
- virtual list<string> get_presets();
+ virtual std::vector<std::string> get_presets();
virtual bool has_editor() const = 0;
diff --git a/libs/ardour/plugin.cc b/libs/ardour/plugin.cc
index f5753fd182..042e156130 100644
--- a/libs/ardour/plugin.cc
+++ b/libs/ardour/plugin.cc
@@ -265,10 +265,10 @@ Plugin::write_midi_feedback (MIDI::byte* buf, int32_t& bufsize)
return buf;
}
-list<string>
+vector<string>
Plugin::get_presets()
{
- list<string> labels;
+ vector<string> labels;
lrdf_uris* set_uris = lrdf_get_setting_uris(unique_id());
if (set_uris) {
@@ -281,7 +281,8 @@ Plugin::get_presets()
lrdf_free_uris(set_uris);
}
- labels.unique();
+ // GTK2FIX find an equivalent way to do this with a vector (needed by GUI apis)
+ // labels.unique();
return labels;
}