Fix broken const ref in wildcard

This commit is contained in:
Seth Hillbrand 2022-08-15 12:07:16 -07:00
parent 35ac39844f
commit 759e1a64ef
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ wxString formatWildcardExt( const wxString& aWildcard )
wxString wc;
#if defined( __WXGTK__ )
for( auto& ch : aWildcard )
for( const auto& ch : aWildcard )
{
if( wxIsalpha( ch ) )
wc += wxString::Format( "[%c%c]", wxTolower( ch ), wxToupper( ch ) );

View File

@ -133,7 +133,7 @@ VECTOR2I PCB_GRID_HELPER::AlignToArc( const VECTOR2I& aPoint, const SHAPE_ARC& a
int min_d = std::numeric_limits<int>::max();
for( VECTOR2I& pt : { aArc.GetP0(), aArc.GetP1() } )
for( const VECTOR2I& pt : { aArc.GetP0(), aArc.GetP1() } )
{
int d = ( pt - aPoint ).EuclideanNorm();