Fix shadowing
This commit is contained in:
parent
1e8284bc1a
commit
22b9856a6a
|
@ -531,8 +531,8 @@ bool SETTINGS_MANAGER::MigrateIfNeeded()
|
||||||
if( !m_migrateLibraryTables )
|
if( !m_migrateLibraryTables )
|
||||||
{
|
{
|
||||||
COMMON_SETTINGS common;
|
COMMON_SETTINGS common;
|
||||||
wxString path = GetPathForSettingsFile( &common );
|
wxString commonPath = GetPathForSettingsFile( &common );
|
||||||
common.LoadFromFile( path );
|
common.LoadFromFile( commonPath );
|
||||||
|
|
||||||
const std::vector<wxString> libKeys = {
|
const std::vector<wxString> libKeys = {
|
||||||
wxT( "KICAD6_SYMBOL_DIR" ),
|
wxT( "KICAD6_SYMBOL_DIR" ),
|
||||||
|
@ -550,7 +550,7 @@ bool SETTINGS_MANAGER::MigrateIfNeeded()
|
||||||
for( const wxString& key : libKeys )
|
for( const wxString& key : libKeys )
|
||||||
common.m_Env.vars.erase( key );
|
common.m_Env.vars.erase( key );
|
||||||
|
|
||||||
common.SaveToFile( path );
|
common.SaveToFile( commonPath );
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue