From 3d773dd5b03d7e4fe53a41ff83a80ae3b156a76d Mon Sep 17 00:00:00 2001 From: Alejandro Rivero Perez Date: Sun, 14 May 2023 12:44:22 +0200 Subject: [PATCH] Moving last std container to similar in Qt library --- oscar/SleepLib/loader_plugins/resvent_loader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/resvent_loader.cpp b/oscar/SleepLib/loader_plugins/resvent_loader.cpp index 29102d26..e04ba152 100644 --- a/oscar/SleepLib/loader_plugins/resvent_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resvent_loader.cpp @@ -332,7 +332,8 @@ struct ChunkData { QString ReadDescriptionName(QFile& f) { constexpr int kNameSize = 9; - std::array name; + QVector name(kNameSize); + const auto readed = f.read(name.data(), kNameSize - 1); Q_ASSERT(readed == kNameSize - 1);