13
0

const'ness FTW

This commit is contained in:
Robin Gareus 2016-11-14 01:13:48 +01:00
parent 8975f6c8d2
commit 1d60986283
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class LIBARDOUR_API PluginManager : public boost::noncopyable {
void load_statuses (); void load_statuses ();
void save_statuses (); void save_statuses ();
void set_status (ARDOUR::PluginType type, std::string unique_id, PluginStatusType status); void set_status (ARDOUR::PluginType type, std::string unique_id, PluginStatusType status);
PluginStatusType get_status (const PluginInfoPtr&); PluginStatusType get_status (const PluginInfoPtr&) const;
/** plugins were added to or removed from one of the PluginInfoLists */ /** plugins were added to or removed from one of the PluginInfoLists */
PBD::Signal0<void> PluginListChanged; PBD::Signal0<void> PluginListChanged;

View File

@ -1242,7 +1242,7 @@ PluginManager::lxvst_discover (string path, bool cache_only)
PluginManager::PluginStatusType PluginManager::PluginStatusType
PluginManager::get_status (const PluginInfoPtr& pi) PluginManager::get_status (const PluginInfoPtr& pi) const
{ {
PluginStatus ps (pi->type, pi->unique_id); PluginStatus ps (pi->type, pi->unique_id);
PluginStatusList::const_iterator i = find (statuses.begin(), statuses.end(), ps); PluginStatusList::const_iterator i = find (statuses.begin(), statuses.end(), ps);