diff plugin/NativeVampPluginFactory.cpp @ 1246:75aefcc9f07d piper

Use plugin scan results to inform the list requests issued to Piper servers
author Chris Cannam
date Thu, 03 Nov 2016 14:14:09 +0000
parents 5d886b7b4029
children 8f076d02569a
line wrap: on
line diff
--- a/plugin/NativeVampPluginFactory.cpp	Tue Nov 01 16:02:15 2016 +0000
+++ b/plugin/NativeVampPluginFactory.cpp	Thu Nov 03 14:14:09 2016 +0000
@@ -81,10 +81,12 @@
         return m_identifiers;
     }
     
-    QStringList candidates = PluginScan::getInstance()->getCandidateLibrariesFor
+    auto candidates = PluginScan::getInstance()->getCandidateLibrariesFor
         (PluginScan::VampPlugin);
     
-    for (QString soname : candidates) {
+    for (auto candidate : candidates) {
+
+        QString soname = candidate.libraryPath;
 
         void *libraryHandle = DLOPEN(soname, RTLD_LAZY | RTLD_LOCAL);