1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 16:39:30 +02:00

Fix another compilation warning

This commit is contained in:
Paul Licameli 2018-03-05 14:22:23 -05:00
parent 4c5e1f30fd
commit 8b68864ddb

View File

@ -1842,14 +1842,15 @@ bool PluginManager::DropFile(const wxString &fileName)
std::vector<PluginID> ids;
std::vector<wxString> names;
nPlugIns = module->DiscoverPluginsAtPath(dstPath, errMsg,
[&](ModuleInterface *provider, IdentInterface *ident){
[&](ModuleInterface *provider, IdentInterface *ident)
-> const PluginID& {
// Register as by default, but also collecting the PluginIDs
// and names
const PluginID * id = &PluginManagerInterface::DefaultRegistrationCallback(
auto &id = PluginManagerInterface::DefaultRegistrationCallback(
provider, ident);
ids.push_back(*id);
ids.push_back(id);
names.push_back( wxGetTranslation( ident->GetName() ) );
return *id;
return id;
});
if ( ! nPlugIns ) {
// Unlikely after the dry run succeeded