13
0

more attempted cleanup of AU preset declarations

git-svn-id: svn://localhost/ardour2/branches/3.0@9263 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-04-02 14:12:09 +00:00
parent 7d30cc243f
commit ee725fbe91
2 changed files with 6 additions and 4 deletions

View File

@ -97,8 +97,8 @@ class AUPlugin : public ARDOUR::Plugin
int set_state(const XMLNode& node, int); int set_state(const XMLNode& node, int);
bool save_preset (std::string name); PresetRecord save_preset (std::string name);
bool load_preset (const std::string& preset_label); bool load_preset (PresetRecord);
std::string current_preset() const; std::string current_preset() const;
bool has_editor () const; bool has_editor () const;

View File

@ -1658,8 +1658,10 @@ AUPlugin::set_state(const XMLNode& node, int version)
} }
bool bool
AUPlugin::load_preset (const string& preset_label) AUPlugin::load_preset (PluginRecord r)
{ {
Plugin::load_preset (r);
#ifdef AU_STATE_SUPPORT #ifdef AU_STATE_SUPPORT
bool ret = false; bool ret = false;
CFPropertyListRef propertyList; CFPropertyListRef propertyList;
@ -1719,7 +1721,7 @@ AUPlugin::load_preset (const string& preset_label)
#endif #endif
} }
bool PresetRecord
AUPlugin::save_preset (string preset_name) AUPlugin::save_preset (string preset_name)
{ {
#ifdef AU_STATE_SUPPORT #ifdef AU_STATE_SUPPORT