on xenial help sign in
Fix uses of uninitialized values reported by valgrind.

Approved by Michael Zanetti, PS Jenkins bot.

commit94d749c23bbdf4d96f3a84d210e6091e134d40fd authorAlbert Astals <albert.astals@canonical.com> dateMon 12 Aug 2013, 13:36 (13 years ago) parentc7affa3b45756c
2 files changed+3
plugins/Ubuntu/Gestures/Damper.h+2 tests/mocks/Ubuntu/Application/ApplicationInfo.cpp+1
plugins/Ubuntu/Gestures/Damper.h+2
@@ -24,6 +24,8 @@
2424 */
2525template <class Type> class Damper {
2626public:
27+ Damper() : m_value(0), m_maxDelta(0) { }
28+
2729 // Maximum delta between the raw value and its dampened counterpart.
2830 void setMaxDelta(Type maxDelta) {
2931 if (maxDelta < 0) qFatal("Damper::maxDelta must be a positive number.");
tests/mocks/Ubuntu/Application/ApplicationInfo.cpp+1
@@ -23,6 +23,7 @@
2323
2424ApplicationInfo::ApplicationInfo(QObject *parent)
2525 : QObject(parent)
26+ ,m_handle(0)
2627 ,m_stage(MainStage)
2728 ,m_state(Starting)
2829 ,m_fullscreen(false)