diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-09-09 09:26:25 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-09-09 10:31:10 +0200 |
commit | bb5c934d3e2e07ddf3a1c299b2111d7119a01eb5 (patch) | |
tree | c539591ba2ed2eb6a0b724d03073ed4f43470b81 /src/plugins/platforms/fb_base | |
parent | 34625a376b7d08856c6de1f52179d86aaaa30f14 (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.cpp | 4 | ||||
-rw-r--r-- | src/plugins/platforms/fb_base/fb_base.h | 2 |
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(); |