From d02e4f3254c8d84e09f7f67cc562cf7a0de15f05 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Thu, 17 Aug 2023 14:43:24 +0300 Subject: [PATCH] Fix PLUGIN_FILE_DESC copy warning, remove a leftover comment. --- pcbnew/files.cpp | 2 +- pcbnew/footprint_libraries_utils.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index 6a27d55f2b..778022f03b 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -117,7 +117,7 @@ bool AskLoadBoardFileName( PCB_EDIT_FRAME* aParent, wxString* aFileName, int aCt std::vector allExtensions; std::set allWildcardsSet; - for( const PLUGIN_FILE_DESC desc : descriptions ) + for( const PLUGIN_FILE_DESC& desc : descriptions ) { if( !fileFiltersStr.IsEmpty() ) fileFiltersStr += wxChar( '|' ); diff --git a/pcbnew/footprint_libraries_utils.cpp b/pcbnew/footprint_libraries_utils.cpp index f381adc913..deecb5d537 100644 --- a/pcbnew/footprint_libraries_utils.cpp +++ b/pcbnew/footprint_libraries_utils.cpp @@ -86,7 +86,6 @@ FOOTPRINT* FOOTPRINT_EDIT_FRAME::ImportFootprint( const wxString& aName ) std::vector allExtensions; std::set allWildcardsSet; - //for( const PLUGIN_FILE_DESC desc : descriptions ) for( const auto& plugin : IO_MGR::PLUGIN_REGISTRY::Instance()->AllPlugins() ) { PLUGIN::RELEASER pi( plugin.m_createFunc() );