mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Use QDataStream directly on QByteArray.
This commit is contained in:
@@ -1176,10 +1176,7 @@ QByteArray iconMaskValueSize(int width, int height) {
|
||||
QLatin1String sizeTag("SIZE:");
|
||||
result.append(sizeTag.data(), sizeTag.size());
|
||||
{
|
||||
QBuffer buffer(&result);
|
||||
buffer.open(QIODevice::Append);
|
||||
|
||||
QDataStream stream(&buffer);
|
||||
QDataStream stream(&result, QIODevice::Append);
|
||||
stream.setVersion(QDataStream::Qt_5_1);
|
||||
stream << qint32(width) << qint32(height);
|
||||
}
|
||||
|
Reference in New Issue
Block a user