Commit fc009739 authored by David Schulz's avatar David Schulz
Browse files

cdbext: Fix dump of QString inside QVariant.



Change-Id: I137f92c6ff744e15efe3d24cbf28206b62a30d5e
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 78828606
......@@ -2473,8 +2473,15 @@ static bool dumpQVariant(const SymbolGroupValue &v, std::wostream &str, void **s
break;
case 10: // String
str << L"(QString) ";
if (const SymbolGroupValue sv = dataV.typeCast(qtInfo.prependQtCoreModule("QString *").c_str()))
dumpQString(sv, str);
if (const SymbolGroupValue sv = dataV.typeCast(qtInfo.prependQtCoreModule("QString *").c_str())) {
if (!dumpQString(sv, str)) {
// HACK:
// In some rare cases the the AddSymbol can't create a node with a given module name,
// but is able to add the symbol without any modulename.
if (const SymbolGroupValue svc = dataV.typeCast("QString *"))
dumpQString(svc, str);
}
}
break;
case 11: //StringList: Dump container size
str << L"(QStringList) ";
......
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