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:
Jędrzej Nowacki 2012-01-26 15:39:50 +01:00 committed by Qt by Nokia
parent d6fccc69f3
commit 43270da01a

View File

@ -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);
}
}