forked from qt-creator/qt-creator
QML Debugger: Add an explicit override for bool to DebuggerCommand
This makes sure we construct QJsonValues from bools, rather than casting them to ints. Change-Id: Ibc3e5322460e5bec153d80024219ba7935268d68 Task-number: QTCREATORBUG-15395 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
@@ -843,6 +843,11 @@ void DebuggerCommand::arg(const char *value)
|
||||
args = arr;
|
||||
}
|
||||
|
||||
void DebuggerCommand::arg(const char *name, bool value)
|
||||
{
|
||||
args = addToJsonObject(args, name, value);
|
||||
}
|
||||
|
||||
void DebuggerCommand::arg(const char *name, const QJsonValue &value)
|
||||
{
|
||||
args = addToJsonObject(args, name, value);
|
||||
|
@@ -58,6 +58,7 @@ public:
|
||||
DebuggerCommand(const QByteArray &f, int fl, const Callback &cb) : function(f), callback(cb), flags(fl) {}
|
||||
|
||||
void arg(const char *value);
|
||||
void arg(const char *name, bool value);
|
||||
void arg(const char *name, int value);
|
||||
void arg(const char *name, qlonglong value);
|
||||
void arg(const char *name, qulonglong value);
|
||||
|
Reference in New Issue
Block a user