summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/fbconvenience/qfbcursor_p.h
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-07-29 13:21:28 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-11-06 12:11:22 +0000
commit1771b8d7c6fd052e6a16b109cc841e69fe180e2d (patch)
tree45a714f81d0ec7dff3e04d7e14db60cefc76d4e2 /src/platformsupport/fbconvenience/qfbcursor_p.h
parent73e7eb785fbf984e2b964be8c3acad788479dfa6 (diff)
QFbCursor: Avoid nullptr access when QT_QPA_FB_HIDECURSOR is 0
When the environment variable QT_QPA_FB_HIDECURSOR is set to 0, the two class members mCursorImage and mDeviceListener are nullptr but this was not checked in the functions afterwards. Task-number: QTBUG-64844 Change-Id: Ic0fd6a09851777643e59bedf2c006a6bb9a36801 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/platformsupport/fbconvenience/qfbcursor_p.h')
-rw-r--r--src/platformsupport/fbconvenience/qfbcursor_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platformsupport/fbconvenience/qfbcursor_p.h b/src/platformsupport/fbconvenience/qfbcursor_p.h
index beda10a5f3..cc36a2411b 100644
--- a/src/platformsupport/fbconvenience/qfbcursor_p.h
+++ b/src/platformsupport/fbconvenience/qfbcursor_p.h
@@ -105,7 +105,7 @@ 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);
- QRect getCurrentRect();
+ QRect getCurrentRect() const;
bool mVisible;
QFbScreen *mScreen;