fix headers deserialize

This commit is contained in:
Alexey Shcherbakov 2013-04-28 11:06:23 +06:00
parent d5c3a5d521
commit 1a05e873cb
1 changed files with 2 additions and 2 deletions

View File

@ -252,9 +252,9 @@ QVariant QAMQP::Frame::readField( qint8 valueType, QDataStream &s )
}
s.readRawData(tmp.data(), tmp.size());
#if QT_VERSION < 0x050000
value = QString::fromAscii(tmp.data(), nameSize_);
value = QString::fromAscii(tmp.data(), tmp.size());
#else // For Qt5
value = QString::fromLatin1(tmp.data(), nameSize_);
value = QString::fromLatin1(tmp.data(), tmp.size());
#endif
break;
case 'A':