7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 00:21:31 +00:00

fix a compil warning (shadowed var).

This commit is contained in:
jean-pierre charras 2020-09-01 17:45:59 +02:00
parent 9fdadcbcf5
commit f38631b9ab

View File

@ -148,11 +148,11 @@ SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS( JSON_SETTINGS* aParent, const std::strin
if( !templateFieldNames.IsEmpty() )
{
TEMPLATE_FIELDNAMES_LEXER lexer( TO_UTF8( templateFieldNames ) );
TEMPLATE_FIELDNAMES_LEXER field_lexer( TO_UTF8( templateFieldNames ) );
try
{
m_TemplateFieldNames.Parse( &lexer, true );
m_TemplateFieldNames.Parse( &field_lexer, true );
}
catch( const IO_ERROR& )
{