Moving last std container to similar in Qt library

This commit is contained in:
Alejandro Rivero Perez 2023-05-14 12:44:22 +02:00
parent f1b671c233
commit 3d773dd5b0

View File

@ -332,7 +332,8 @@ struct ChunkData {
QString ReadDescriptionName(QFile& f) {
constexpr int kNameSize = 9;
std::array<char, kNameSize> name;
QVector<char> name(kNameSize);
const auto readed = f.read(name.data(), kNameSize - 1);
Q_ASSERT(readed == kNameSize - 1);