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);
|
||||
|
||||
Reference in New Issue
Block a user