Commit ca9d360e authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger[CDB]: Quote all QString-occurrences.

parent f628bcbd
......@@ -1244,7 +1244,7 @@ static inline bool dumpQString(const SymbolGroupValue &v, std::wostream &str)
if (const SymbolGroupValue sizeValue = d["size"]) {
const int size = sizeValue.intValue();
if (size >= 0) {
str << d["data"].wcharPointerData(size);
str << L'"' << d["data"].wcharPointerData(size) << L'"';
return true;
}
}
......@@ -1461,9 +1461,7 @@ static inline bool dumpQWidget(const SymbolGroupValue &v, std::wostream &str, vo
return false;
if (specialInfoIn)
*specialInfoIn = qwPrivate.node();
str << L'"';
dumpQString(oName, str);
str << L'"';
return true;
}
......@@ -1475,9 +1473,7 @@ static inline bool dumpQObject(const SymbolGroupValue &v, std::wostream &str, vo
if (SymbolGroupValue oName = qoPrivate["objectName"]) {
if (specialInfoIn)
*specialInfoIn = qoPrivate.node();
str << L'"';
dumpQString(oName, str);
str << L'"';
return true;
}
}
......@@ -1600,10 +1596,9 @@ static bool dumpQVariant(const SymbolGroupValue &v, std::wostream &str, void **s
}
break;
case 10: // String
str << L"(QString) \"";
str << L"(QString) ";
if (const SymbolGroupValue sv = dataV.typeCast(qtInfo.prependQtCoreModule("QString *").c_str())) {
dumpQString(sv, str);
str << L'"';
}
break;
case 11: //StringList: Dump container size
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment