Make import GUI report if you are importing a file of a name that
[ardour.git] / libs / ardour / vst_plugin.cc
index 9ec6994e3c25937ac61138ee38cd9e3cbd2354b5..2211b028a7d81cce63e938f6c4e41a6a2016838b 100644 (file)
@@ -141,7 +141,7 @@ VSTPlugin::get_state()
 {
        XMLNode *root = new XMLNode (state_node_name());
        LocaleGuard lg (X_("POSIX"));
-       
+
        if (_plugin->flags & effFlagsProgramChunks) {
 
                /* fetch the current chunk */
@@ -408,10 +408,12 @@ VSTPlugin::activate ()
        _plugin->dispatcher (_plugin, effMainsChanged, 0, 1, NULL, 0.0f);
 }
 
-uint32_t 
+string
 VSTPlugin::unique_id() const
 {
-       return _plugin->uniqueID;
+       char buf[32];
+       snprintf (buf, sizeof (buf), "%d", _plugin->uniqueID);
+       return string (buf);
 }