Commit 6eb10d54 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent f8ab42c1
......@@ -37,7 +37,7 @@ void MineFieldItem::resetMines()
m_gameOver = false;
m_numUnrevealed = m_numRows*m_numCols;
for(CellItem* item : m_cells) {
for(CellItem* item : qAsConst(m_cells)) {
item->unreveal();
item->unflag();
item->unexplode();
......
......@@ -104,7 +104,7 @@ private:
/**
* Overloaded one, which takes QPair
*/
inline CellItem* itemAt( const FieldPos& pos ) { return itemAt(pos.first,pos.second); }
inline CellItem* itemAt( FieldPos pos ) { return itemAt(pos.first,pos.second); }
/**
* Calculates (row,col) from given index in m_cells and returns them in QPair
*/
......
......@@ -86,11 +86,12 @@ class QResizeEvent;
class KMinesView : public QGraphicsView
{
Q_OBJECT
public:
KMinesView( KMinesScene* scene, QWidget *parent );
private:
void resizeEvent( QResizeEvent *ev ) override;
KMinesScene* m_scene;
KMinesScene* m_scene = nullptr;
};
#endif
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