summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/fb_base
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-09-09 09:26:25 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2010-09-09 10:31:10 +0200
commitbb5c934d3e2e07ddf3a1c299b2111d7119a01eb5 (patch)
treec539591ba2ed2eb6a0b724d03073ed4f43470b81 /src/plugins/platforms/fb_base
parent34625a376b7d08856c6de1f52179d86aaaa30f14 (diff)
Lighthouse: Various compiler warning/error fixes
compliments from Vapula
Diffstat (limited to 'src/plugins/platforms/fb_base')
-rw-r--r--src/plugins/platforms/fb_base/fb_base.cpp4
-rw-r--r--src/plugins/platforms/fb_base/fb_base.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/fb_base/fb_base.cpp b/src/plugins/platforms/fb_base/fb_base.cpp
index ef7ab02621..48488d4f0b 100644
--- a/src/plugins/platforms/fb_base/fb_base.cpp
+++ b/src/plugins/platforms/fb_base/fb_base.cpp
@@ -67,7 +67,7 @@ void QPlatformSoftwareCursor::setCursor(Qt::CursorShape shape)
graphic->set(shape);
}
-void QPlatformSoftwareCursor::setCursor(const QImage * image, int hotx, int hoty)
+void QPlatformSoftwareCursor::setCursor(const QImage &image, int hotx, int hoty)
{
graphic->set(image, hotx, hoty);
}
@@ -85,7 +85,7 @@ void QPlatformSoftwareCursor::changeCursor(QCursor * widgetCursor, QWidget * wid
if (shape == Qt::BitmapCursor) {
// application supplied cursor
QPoint spot = widgetCursor->hotSpot();
- setCursor(&widgetCursor->pixmap().toImage(), spot.x(), spot.y());
+ setCursor(widgetCursor->pixmap().toImage(), spot.x(), spot.y());
} else {
// system cursor
setCursor(shape);
diff --git a/src/plugins/platforms/fb_base/fb_base.h b/src/plugins/platforms/fb_base/fb_base.h
index 10f292e412..e52455aeb5 100644
--- a/src/plugins/platforms/fb_base/fb_base.h
+++ b/src/plugins/platforms/fb_base/fb_base.h
@@ -40,7 +40,7 @@ protected:
private:
void setCursor(const uchar *data, const uchar *mask, int width, int height, int hotX, int hotY);
void setCursor(Qt::CursorShape shape);
- void setCursor(const QImage * image, int hotx, int hoty);
+ void setCursor(const QImage &image, int hotx, int hoty);
QRect currentRect; // next place to draw the cursor
QRect prevRect; // last place the cursor was drawn
QRect getCurrentRect();