Commit 85df8980 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent afd61322
...@@ -41,9 +41,9 @@ struct KBounceVector ...@@ -41,9 +41,9 @@ struct KBounceVector
{ {
qreal x, y; qreal x, y;
KBounceVector( qreal newx = 0, qreal newy = 0 ) : x( newx ), y( newy ) {}; KBounceVector( qreal newx = 0, qreal newy = 0 ) : x( newx ), y( newy ) {}
KBounceVector& operator+=( const KBounceVector& rv ) KBounceVector& operator+=(KBounceVector rv )
{ {
x += rv.x; y += rv.y; x += rv.x; y += rv.y;
return *this; return *this;
......
...@@ -54,7 +54,7 @@ void KBounceRenderer::setCustomBackgroundPath(const QString& path) ...@@ -54,7 +54,7 @@ void KBounceRenderer::setCustomBackgroundPath(const QString& path)
m_cachedBackground = QPixmap(); m_cachedBackground = QPixmap();
} }
void KBounceRenderer::setBackgroundSize( const QSize& size ) void KBounceRenderer::setBackgroundSize( QSize size )
{ {
if (size != m_backgroundSize ) if (size != m_backgroundSize )
{ {
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
class KBounceRenderer : public KGameRenderer class KBounceRenderer : public KGameRenderer
{ {
Q_OBJECT
public: public:
/** /**
* Constructor. * Constructor.
...@@ -49,7 +50,7 @@ class KBounceRenderer : public KGameRenderer ...@@ -49,7 +50,7 @@ class KBounceRenderer : public KGameRenderer
/** /**
* Sets Background size and invalidates background cache * Sets Background size and invalidates background cache
*/ */
void setBackgroundSize( const QSize& size); void setBackgroundSize(QSize size);
/** /**
* Renders background to QPixmap of size set by setBachgroundSize * Renders background to QPixmap of size set by setBachgroundSize
* Background pixmap is cached (setBackgroundSize() invalidates the cache) * Background pixmap is cached (setBackgroundSize() invalidates the cache)
......
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