forked from qt-creator/qt-creator
Fix NBN code scanning issues in shared TRK code.
This commit is contained in:
@@ -348,7 +348,7 @@ QByteArray JsonValue::toString(bool multiline, int indent) const
|
|||||||
break;
|
break;
|
||||||
case String:
|
case String:
|
||||||
if (!m_name.isEmpty())
|
if (!m_name.isEmpty())
|
||||||
result += m_name + "=";
|
result += m_name + '=';
|
||||||
result += '"' + escapeCString(m_data) + '"';
|
result += '"' + escapeCString(m_data) + '"';
|
||||||
break;
|
break;
|
||||||
case Number:
|
case Number:
|
||||||
@@ -368,24 +368,24 @@ QByteArray JsonValue::toString(bool multiline, int indent) const
|
|||||||
if (multiline) {
|
if (multiline) {
|
||||||
result += "{\n";
|
result += "{\n";
|
||||||
dumpChildren(&result, multiline, indent + 1);
|
dumpChildren(&result, multiline, indent + 1);
|
||||||
result += '\n' + ind(indent) + "}";
|
result += '\n' + ind(indent) + '}';
|
||||||
} else {
|
} else {
|
||||||
result += "{";
|
result += '{';
|
||||||
dumpChildren(&result, multiline, indent + 1);
|
dumpChildren(&result, multiline, indent + 1);
|
||||||
result += "}";
|
result += '}';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Array:
|
case Array:
|
||||||
if (!m_name.isEmpty())
|
if (!m_name.isEmpty())
|
||||||
result += m_name + "=";
|
result += m_name + '=';
|
||||||
if (multiline) {
|
if (multiline) {
|
||||||
result += "[\n";
|
result += "[\n";
|
||||||
dumpChildren(&result, multiline, indent + 1);
|
dumpChildren(&result, multiline, indent + 1);
|
||||||
result += '\n' + ind(indent) + "]";
|
result += '\n' + ind(indent) + ']';
|
||||||
} else {
|
} else {
|
||||||
result += "[";
|
result += '[';
|
||||||
dumpChildren(&result, multiline, indent + 1);
|
dumpChildren(&result, multiline, indent + 1);
|
||||||
result += "]";
|
result += ']';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -53,7 +53,7 @@ struct Breakpoint;
|
|||||||
|
|
||||||
/* Command error handling in TCF:
|
/* Command error handling in TCF:
|
||||||
* 1) 'Severe' errors (JSON format, parameter format): Trk emits a
|
* 1) 'Severe' errors (JSON format, parameter format): Trk emits a
|
||||||
* nonstandard message (\3\2 error paramaters) and closes the connection.
|
* nonstandard message (\3\2 error parameters) and closes the connection.
|
||||||
* 2) Protocol errors: 'N' without error message is returned.
|
* 2) Protocol errors: 'N' without error message is returned.
|
||||||
* 3) Errors in command execution: 'R' with a TCF error hash is returned
|
* 3) Errors in command execution: 'R' with a TCF error hash is returned
|
||||||
* (see TcfTrkCommandError). */
|
* (see TcfTrkCommandError). */
|
||||||
|
@@ -111,7 +111,7 @@ struct SYMBIANUTILS_EXPORT RunControlContext {
|
|||||||
QByteArray parentId; // Parent process id of a thread.
|
QByteArray parentId; // Parent process id of a thread.
|
||||||
};
|
};
|
||||||
|
|
||||||
// Module load information occuring with 'RunControl contextSuspended' events
|
// Module load information occurring with 'RunControl contextSuspended' events
|
||||||
struct SYMBIANUTILS_EXPORT ModuleLoadEventInfo {
|
struct SYMBIANUTILS_EXPORT ModuleLoadEventInfo {
|
||||||
ModuleLoadEventInfo();
|
ModuleLoadEventInfo();
|
||||||
void clear();
|
void clear();
|
||||||
|
Reference in New Issue
Block a user