From 624c7cf2505e7c05e0703a038b6f52d6277334cf Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 29 Nov 2016 12:35:57 +0100 Subject: [PATCH] Debugger: Initialize members in DebuggerProtocol Change-Id: I612db0554205c2c34c3505c0fb91559554c06923 Reviewed-by: hjk --- src/plugins/debugger/debuggerprotocol.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/debugger/debuggerprotocol.h b/src/plugins/debugger/debuggerprotocol.h index ceb3c9206d5..ad6f3ed822e 100644 --- a/src/plugins/debugger/debuggerprotocol.h +++ b/src/plugins/debugger/debuggerprotocol.h @@ -46,8 +46,8 @@ public: typedef std::function Callback; DebuggerCommand() {} - DebuggerCommand(const QString &f) : function(f), flags(0) {} - DebuggerCommand(const QString &f, const QJsonValue &a) : function(f), args(a), flags(0) {} + DebuggerCommand(const QString &f) : function(f) {} + DebuggerCommand(const QString &f, const QJsonValue &a) : function(f), args(a) {} DebuggerCommand(const QString &f, int fl) : function(f), flags(fl) {} DebuggerCommand(const QString &f, int fl, const Callback &cb) : function(f), callback(cb), flags(fl) {} @@ -67,8 +67,8 @@ public: QString function; QJsonValue args; Callback callback; - uint postTime; // msecsSinceStartOfDay - int flags; + uint postTime = 0; // msecsSinceStartOfDay + int flags = 0; private: void argHelper(const char *name, const QByteArray &value);