projects
/
profile
/
ivi
/
qtbase.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce QMetaType::UnknownType.
[profile/ivi/qtbase.git]
/
src
/
corelib
/
kernel
/
qvariant.cpp
diff --git
a/src/corelib/kernel/qvariant.cpp
b/src/corelib/kernel/qvariant.cpp
index
1c18883
..
ae51764
100644
(file)
--- a/
src/corelib/kernel/qvariant.cpp
+++ b/
src/corelib/kernel/qvariant.cpp
@@
-1697,7
+1697,7
@@
void QVariant::load(QDataStream &s)
QByteArray name;
s >> name;
typeId = QMetaType::type(name);
- if (
!typeId
) {
+ if (
typeId == QMetaType::UnknownType
) {
s.setStatus(QDataStream::ReadCorruptData);
return;
}