Fix PLUGIN_FILE_DESC copy warning, remove a leftover comment.
This commit is contained in:
parent
88db775d32
commit
d02e4f3254
|
@ -117,7 +117,7 @@ bool AskLoadBoardFileName( PCB_EDIT_FRAME* aParent, wxString* aFileName, int aCt
|
|||
std::vector<std::string> allExtensions;
|
||||
std::set<wxString> allWildcardsSet;
|
||||
|
||||
for( const PLUGIN_FILE_DESC desc : descriptions )
|
||||
for( const PLUGIN_FILE_DESC& desc : descriptions )
|
||||
{
|
||||
if( !fileFiltersStr.IsEmpty() )
|
||||
fileFiltersStr += wxChar( '|' );
|
||||
|
|
|
@ -86,7 +86,6 @@ FOOTPRINT* FOOTPRINT_EDIT_FRAME::ImportFootprint( const wxString& aName )
|
|||
std::vector<std::string> allExtensions;
|
||||
std::set<wxString> allWildcardsSet;
|
||||
|
||||
//for( const PLUGIN_FILE_DESC desc : descriptions )
|
||||
for( const auto& plugin : IO_MGR::PLUGIN_REGISTRY::Instance()->AllPlugins() )
|
||||
{
|
||||
PLUGIN::RELEASER pi( plugin.m_createFunc() );
|
||||
|
|
Loading…
Reference in New Issue