Fix missing reference in for loop

This commit is contained in:
Ian McInerney 2021-10-18 00:29:10 +01:00
parent 61025de865
commit 280743d9e9
1 changed files with 1 additions and 1 deletions

View File

@ -1308,7 +1308,7 @@ bool SCH_EDIT_FRAME::updateAutoSaveFile()
if( !autoSaveFile.Create() )
return false;
for( const wxString fileName : autoSavedFiles )
for( const wxString& fileName : autoSavedFiles )
{
wxLogTrace( traceAutoSave, "Adding auto save file %s to %s",
fileName, autoSaveFileName.GetName() );