Commit b836d54b authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

const &-ification of non pointer foreach variables

svn path=/trunk/KDE/kdegames/klines/; revision=623295
parent 24bb7364
......@@ -212,7 +212,7 @@ void KLinesAnimator::findPath( const FieldPos& from, const FieldPos& to )
if( x != FIELD_SIZE-1 ) adjasentSquares.append( FieldPos(x+1,y) );
if( y != FIELD_SIZE-1 ) adjasentSquares.append( FieldPos(x,y+1) );
foreach( FieldPos pos, adjasentSquares )
foreach( const FieldPos &pos, adjasentSquares )
{
if( m_scene->ballAt(pos) != 0 ) // skip non-walkable cells
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment