Fix broken const ref in wildcard
This commit is contained in:
parent
35ac39844f
commit
759e1a64ef
|
@ -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 ) );
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue