fix: compilation errors

This commit is contained in:
Mike Solar
2025-08-03 22:50:26 +08:00
parent 7b75c58af7
commit 11d8ea5e78
2 changed files with 5 additions and 4 deletions
@@ -17,6 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
#include <QString>
#include "serializer230220.h"
@@ -190,9 +191,9 @@ ProjectSerializer230220::LoadData ProjectSerializer230220::Load(Project *project
} else if (attr.name() == QStringLiteral("ptr")) {
ptr = attr.value().toULongLong();
} else if (attr.name() == QStringLiteral("items")) {
QVector<QStringRef> l = attr.value().split(',');
QVector<QStringView> l = attr.value().split(',');
items.reserve(l.size());
for (const QStringRef &s : l) {
for (const QStringView &s : l) {
items.append(s.toULongLong());
}
}