Avoid deprecated QVariant ctor
Instead of passing the datastream at construction use the stream operator as recommended
This commit is contained in:
parent
01e93a20cf
commit
3caea941aa
@ -253,7 +253,8 @@ void StorageThread::retrieve(QPointer<StorageJob> wcaller, const QVariantMap &pa
|
|||||||
} else if (!query.value(binaryColumn).isNull()) {
|
} else if (!query.value(binaryColumn).isNull()) {
|
||||||
QByteArray bytes = query.value(binaryColumn).toByteArray();
|
QByteArray bytes = query.value(binaryColumn).toByteArray();
|
||||||
QDataStream in(bytes);
|
QDataStream in(bytes);
|
||||||
QVariant v(in);
|
QVariant v;
|
||||||
|
in >> v;
|
||||||
data.insert(key, v);
|
data.insert(key, v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user