Cdbext: Dump "(null)" for an uninitialized QTimeZone.

Change-Id: I13c0541bad047aa872bdb04f50e6cd0557a40f1a
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
David Schulz
2015-04-02 12:28:55 +02:00
parent e152e06f42
commit 3e82dcad44

View File

@@ -2212,7 +2212,9 @@ static bool dumpQTime(const SymbolGroupValue &v, std::wostream &str, int *encodi
static bool dumpQTimeZone(const SymbolGroupValue &v, std::wostream &str, int *encoding)
{
return dumpQByteArrayFromQPrivateClass(v, QPDM_qSharedDataPadded, SymbolGroupValue::pointerSize(), str, encoding);
if (!dumpQByteArrayFromQPrivateClass(v, QPDM_qSharedDataPadded, SymbolGroupValue::pointerSize(), str, encoding))
str << L"(null)";
return true;
}
// Convenience to dump a QTimeZone from the unexported private class of a Qt class.