mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:49:33 +02:00
Address a CR comment.
This commit is contained in:
parent
959b8bfbed
commit
ac97a82bad
1 changed files with 12 additions and 14 deletions
|
@ -108,22 +108,20 @@ bool OctreeEntitiesFileParser::parseEntities(QVariantMap& parsedEntities) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (idString == "{00000000-0000-0000-0000-000000000000}") {
|
|
||||||
// some older archives may have a null string id, so
|
// some older archives may have a null string id, so
|
||||||
// return success without setting parsedEntities,
|
// return success without setting parsedEntities,
|
||||||
// which will result in a new uuid for the restored
|
// which will result in a new uuid for the restored
|
||||||
// archive. (not parsing and using isNull as parsing
|
// archive. (not parsing and using isNull as parsing
|
||||||
// results in null if there is a corrupt string)
|
// results in null if there is a corrupt string)
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (idString != "{00000000-0000-0000-0000-000000000000}") {
|
||||||
QUuid idValue = QUuid::fromString(QLatin1String(idString.c_str()) );
|
QUuid idValue = QUuid::fromString(QLatin1String(idString.c_str()) );
|
||||||
if (idValue.isNull()) {
|
if (idValue.isNull()) {
|
||||||
_errorString = "Id value invalid UUID string: " + idString;
|
_errorString = "Id value invalid UUID string: " + idString;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
parsedEntities["Id"] = idValue;
|
parsedEntities["Id"] = idValue;
|
||||||
|
}
|
||||||
} else if (key == "Version") {
|
} else if (key == "Version") {
|
||||||
if (gotVersion) {
|
if (gotVersion) {
|
||||||
_errorString = "Duplicate Version entries";
|
_errorString = "Duplicate Version entries";
|
||||||
|
|
Loading…
Reference in a new issue