Squish: Fix object map handling

Always assume UTF8 content. Fixes unicode handling
of object names.
Kind of amend b55c10f189.

Change-Id: I5259ebed6e7eb142408ee8645fed4b0ab1460d19
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-01-30 10:34:49 +01:00
parent 3c51f499ac
commit 2afe3a6ff2

View File

@@ -103,7 +103,7 @@ bool ObjectsMapDocument::buildObjectsMapTree(const QByteArray &contents)
continue;
const int tabPosition = line.indexOf(kPropertySeparator);
const QString objectName = QLatin1String(line.left(tabPosition).trimmed());
const QString objectName = QString::fromUtf8(line.left(tabPosition).trimmed());
if (!objectName.startsWith(ObjectsMapTreeItem::COLON)) {
qDeleteAll(itemForName);
return false;