summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@theqtcompany.com>2016-04-15 13:44:06 +0200
committerJesus Fernandez <jesus.fernandez@theqtcompany.com>2016-04-15 13:03:59 +0000
commit418b6f6899ee414aff29c91a4ae17eed8791a617 (patch)
tree19a729cd8d2d43b759188fb05c47b0ad03470e7b /src
parent8fbae648db3bc51bafacfe1f88e40561d357e60a (diff)
Uninitialized variable in QTouchEventTouchPointPrivate
Non-static class member rotation is not initialized in this constructor nor in any functions that it calls. Change-Id: I2dde99a8cd2107b0cfb4201f641d40b4d0823aa2 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qevent_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qevent_p.h b/src/gui/kernel/qevent_p.h
index 2d6a6560da..b37045c5d8 100644
--- a/src/gui/kernel/qevent_p.h
+++ b/src/gui/kernel/qevent_p.h
@@ -65,7 +65,8 @@ public:
: ref(1),
id(id),
state(Qt::TouchPointReleased),
- pressure(qreal(-1.))
+ pressure(qreal(-1.)),
+ rotation(qreal(0.))
{ }
inline QTouchEventTouchPointPrivate *detach()