Give a more verbose warning during QVariant serialization.
Change-Id: Ia3c0736284afbd4acd8cc86538f5a5399964a589 Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
This commit is contained in:
parent
d6fccc69f3
commit
43270da01a
@ -1784,8 +1784,8 @@ void QVariant::save(QDataStream &s) const
|
||||
}
|
||||
|
||||
if (!QMetaType::save(s, d.type, constData())) {
|
||||
qWarning("QVariant::save: unable to save type '%s' (type id: %d).\n", QMetaType::typeName(d.type), d.type);
|
||||
Q_ASSERT_X(false, "QVariant::save", "Invalid type to save");
|
||||
qWarning("QVariant::save: unable to save type %d.", d.type);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user