Rename local variable to prevent shadow warning

This is probably just a false-positive from GCC, since the outer
variable isn't actually in the capture list of the lambda.
This commit is contained in:
Ian McInerney 2024-12-30 15:09:33 +00:00
parent 04bc819f12
commit c5d39698f2

View File

@ -240,8 +240,8 @@ void UPDATE_MANAGER::CheckForUpdate( wxWindow* aNoticeParent )
{
// basically saving the last received update prevents us from
// prompting again
SETTINGS_MANAGER& mgr = Pgm().GetSettingsManager();
KICAD_SETTINGS* cfg = mgr.GetAppSettings<KICAD_SETTINGS>( "kicad" );
SETTINGS_MANAGER& set_mgr = Pgm().GetSettingsManager();
KICAD_SETTINGS* cfg = set_mgr.GetAppSettings<KICAD_SETTINGS>( "kicad" );
cfg->m_lastReceivedUpdate = response.version;
}
} );