forked from qt-creator/qt-creator
Debugger[CDB]: Quote all QString-occurrences.
This commit is contained in:
@@ -1244,7 +1244,7 @@ static inline bool dumpQString(const SymbolGroupValue &v, std::wostream &str)
|
|||||||
if (const SymbolGroupValue sizeValue = d["size"]) {
|
if (const SymbolGroupValue sizeValue = d["size"]) {
|
||||||
const int size = sizeValue.intValue();
|
const int size = sizeValue.intValue();
|
||||||
if (size >= 0) {
|
if (size >= 0) {
|
||||||
str << d["data"].wcharPointerData(size);
|
str << L'"' << d["data"].wcharPointerData(size) << L'"';
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1461,9 +1461,7 @@ static inline bool dumpQWidget(const SymbolGroupValue &v, std::wostream &str, vo
|
|||||||
return false;
|
return false;
|
||||||
if (specialInfoIn)
|
if (specialInfoIn)
|
||||||
*specialInfoIn = qwPrivate.node();
|
*specialInfoIn = qwPrivate.node();
|
||||||
str << L'"';
|
|
||||||
dumpQString(oName, str);
|
dumpQString(oName, str);
|
||||||
str << L'"';
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1475,9 +1473,7 @@ static inline bool dumpQObject(const SymbolGroupValue &v, std::wostream &str, vo
|
|||||||
if (SymbolGroupValue oName = qoPrivate["objectName"]) {
|
if (SymbolGroupValue oName = qoPrivate["objectName"]) {
|
||||||
if (specialInfoIn)
|
if (specialInfoIn)
|
||||||
*specialInfoIn = qoPrivate.node();
|
*specialInfoIn = qoPrivate.node();
|
||||||
str << L'"';
|
|
||||||
dumpQString(oName, str);
|
dumpQString(oName, str);
|
||||||
str << L'"';
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1600,10 +1596,9 @@ static bool dumpQVariant(const SymbolGroupValue &v, std::wostream &str, void **s
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 10: // String
|
case 10: // String
|
||||||
str << L"(QString) \"";
|
str << L"(QString) ";
|
||||||
if (const SymbolGroupValue sv = dataV.typeCast(qtInfo.prependQtCoreModule("QString *").c_str())) {
|
if (const SymbolGroupValue sv = dataV.typeCast(qtInfo.prependQtCoreModule("QString *").c_str())) {
|
||||||
dumpQString(sv, str);
|
dumpQString(sv, str);
|
||||||
str << L'"';
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 11: //StringList: Dump container size
|
case 11: //StringList: Dump container size
|
||||||
|
|||||||
Reference in New Issue
Block a user