1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 08:59:28 +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<PluginID> ids;
std::vector<wxString> names; std::vector<wxString> names;
nPlugIns = module->DiscoverPluginsAtPath(dstPath, errMsg, nPlugIns = module->DiscoverPluginsAtPath(dstPath, errMsg,
[&](ModuleInterface *provider, IdentInterface *ident){ [&](ModuleInterface *provider, IdentInterface *ident)
-> const PluginID& {
// Register as by default, but also collecting the PluginIDs // Register as by default, but also collecting the PluginIDs
// and names // and names
const PluginID * id = &PluginManagerInterface::DefaultRegistrationCallback( auto &id = PluginManagerInterface::DefaultRegistrationCallback(
provider, ident); provider, ident);
ids.push_back(*id); ids.push_back(id);
names.push_back( wxGetTranslation( ident->GetName() ) ); names.push_back( wxGetTranslation( ident->GetName() ) );
return *id; return id;
}); });
if ( ! nPlugIns ) { if ( ! nPlugIns ) {
// Unlikely after the dry run succeeded // Unlikely after the dry run succeeded