forked from qt-creator/qt-creator
Fix some code scanning issues.
QString: Use QChar/char where appropriate, do not use QString::null
This commit is contained in:
@@ -308,33 +308,33 @@ QByteArray GdbMi::toString(bool multiline, int indent) const
|
||||
break;
|
||||
case Const:
|
||||
if (!m_name.isEmpty())
|
||||
result += m_name + "=";
|
||||
result += "\"" + escapeCString(m_data) + "\"";
|
||||
result += m_name + '=';
|
||||
result += '"' + escapeCString(m_data) + '"';
|
||||
break;
|
||||
case Tuple:
|
||||
if (!m_name.isEmpty())
|
||||
result += m_name + "=";
|
||||
result += m_name + '=';
|
||||
if (multiline) {
|
||||
result += "{\n";
|
||||
dumpChildren(&result, multiline, indent + 1);
|
||||
result += '\n' + ind(indent) + "}";
|
||||
result += '\n' + ind(indent) + '}';
|
||||
} else {
|
||||
result += "{";
|
||||
result += '{';
|
||||
dumpChildren(&result, multiline, indent + 1);
|
||||
result += "}";
|
||||
result += '}';
|
||||
}
|
||||
break;
|
||||
case List:
|
||||
if (!m_name.isEmpty())
|
||||
result += m_name + "=";
|
||||
result += m_name + '=';
|
||||
if (multiline) {
|
||||
result += "[\n";
|
||||
dumpChildren(&result, multiline, indent + 1);
|
||||
result += '\n' + ind(indent) + "]";
|
||||
result += '\n' + ind(indent) + ']';
|
||||
} else {
|
||||
result += "[";
|
||||
result += '[';
|
||||
dumpChildren(&result, multiline, indent + 1);
|
||||
result += "]";
|
||||
result += ']';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user