Commit 75074492 authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify

parent 0f9efe9d
...@@ -344,7 +344,7 @@ void KBounceBoard::tick() ...@@ -344,7 +344,7 @@ void KBounceBoard::tick()
} }
} }
QPixmap KBounceBoard::applyWallsOn(QPixmap background) const QPixmap KBounceBoard::applyWallsOn(const QPixmap &background) const
{ {
if (m_tileSize.isEmpty()) if (m_tileSize.isEmpty())
return background; return background;
......
...@@ -45,7 +45,7 @@ class KBounceBoard: public QGraphicsObject ...@@ -45,7 +45,7 @@ class KBounceBoard: public QGraphicsObject
explicit KBounceBoard( KBounceRenderer *renderer ); explicit KBounceBoard( KBounceRenderer *renderer );
~KBounceBoard(); ~KBounceBoard();
QPixmap applyWallsOn(QPixmap background) const; QPixmap applyWallsOn(const QPixmap &background) const;
void resize( QSize& size ); void resize( QSize& size );
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) Q_DECL_OVERRIDE {} void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) Q_DECL_OVERRIDE {}
......
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