eeschema: Rename shadowing var

This commit is contained in:
Seth Hillbrand 2020-06-01 09:58:07 -07:00
parent eae0c142fe
commit 21c752fa0b
1 changed files with 7 additions and 7 deletions

View File

@ -294,11 +294,11 @@ void DIALOG_SCH_EDIT_ONE_FIELD::onScintillaCharAdded( wxStyledTextEvent &aEvent
wxString partial;
auto textVarRef =
[&]( int pos )
[&]( int pt )
{
return pos >= 2
&& m_StyledTextCtrl->GetCharAt( pos-2 ) == '$'
&& m_StyledTextCtrl->GetCharAt( pos-1 ) == '{';
return pt >= 2
&& m_StyledTextCtrl->GetCharAt( pt - 2 ) == '$'
&& m_StyledTextCtrl->GetCharAt( pt - 1 ) == '{';
};
// Check for cross-reference