Commit 140bee15 authored by Christian Krippendorf's avatar Christian Krippendorf Committed by Christian Krippendorf
Browse files

Make ref on QBrush

parent 980fa03f
......@@ -52,7 +52,7 @@ void GameBackground::paint(QPainter *painter, const QStyleOptionGraphicsItem *,
painter->fillRect(QRectF(0, 0, m_width, m_height), m_background);
}
void GameBackground::setBackground(QBrush background)
void GameBackground::setBackground(const QBrush & background)
{
m_background = background;
}
......
......@@ -46,7 +46,7 @@ public:
* Set the background
* @param facePix The pixmap of the face
*/
void setBackground(QBrush background);
void setBackground(const QBrush & background);
/**
* Overrides the paint method of QGraphicsItem
......
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