const correctness.
[ardour.git] / libs / ardour / vst_plugin.cc
index ee3ebd2ee3f2d83f2949152176781529cbebe4ce..7fb5289f9c6156f0d0c2f91301f8199a475ab650 100644 (file)
@@ -102,7 +102,6 @@ VSTPlugin::VSTPlugin (const VSTPlugin &other)
 VSTPlugin::~VSTPlugin ()
 {
        deactivate ();
-       drop_references ();
        fst_close (_fst);
 }
 
@@ -327,7 +326,7 @@ VSTPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& desc)
 }
 
 bool
-VSTPlugin::load_preset (string name)
+VSTPlugin::load_preset (const string& name)
 {
        if (_plugin->flags & 32 /* effFlagsProgramsChunks */) {
                error << _("no support for presets using chunks at this time")
@@ -525,3 +524,8 @@ VSTPluginInfo::load (Session& session)
                return PluginPtr ((Plugin*) 0);
        }
 }
+
+VSTPluginInfo::VSTPluginInfo()
+{
+       type = ARDOUR::VST;
+}