the object, not its data.

svn path=/branches/KDE/4.4/kdebase/runtime/; revision=1073566
This commit is contained in:
Aaron J. Seigo 2010-01-12 11:13:32 +00:00
parent 0b9ae6270b
commit fe764e43a0

View File

@ -234,7 +234,7 @@ QScriptValue ByteArrayClass::toScriptValue(QScriptEngine *eng, const QByteArray
void ByteArrayClass::fromScriptValue(const QScriptValue &obj, QByteArray &ba) void ByteArrayClass::fromScriptValue(const QScriptValue &obj, QByteArray &ba)
{ {
ba = qvariant_cast<QByteArray>(obj.data().toVariant()); ba = obj.toVariant().toByteArray();
} }