Mercurial > hg > svgui
diff widgets/PluginParameterBox.h @ 1592:1da52d5e6700
Merge from branch audio-source-refactor. Mostly handling changes to plugin ownership
author | Chris Cannam |
---|---|
date | Fri, 03 Apr 2020 12:12:47 +0100 |
parents | 11660e0c896f |
children | 7eb595837eaa |
line wrap: on
line diff
--- a/widgets/PluginParameterBox.h Fri Apr 03 11:35:40 2020 +0100 +++ b/widgets/PluginParameterBox.h Fri Apr 03 12:12:47 2020 +0100 @@ -32,10 +32,11 @@ Q_OBJECT public: - PluginParameterBox(Vamp::PluginBase *, QWidget *parent = 0); + PluginParameterBox(std::shared_ptr<Vamp::PluginBase>, + QWidget *parent = 0); ~PluginParameterBox(); - Vamp::PluginBase *getPlugin() { return m_plugin; } + std::shared_ptr<Vamp::PluginBase> getPlugin() { return m_plugin; } signals: void pluginConfigurationChanged(QString); @@ -51,7 +52,7 @@ void updateProgramCombo(); QGridLayout *m_layout; - Vamp::PluginBase *m_plugin; + std::shared_ptr<Vamp::PluginBase> m_plugin; struct ParamRec { AudioDial *dial;