QtProtobufQtCoreTypes: skip missing copy when iterating segments

Coverity-Id: 479431
Pick-to: 6.9 6.8
Change-Id: I633424a034e19f39a1c072f25afd39adc3e7e440
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Dennis Oberst 2025-03-27 20:13:04 +01:00
parent e0257e5d0b
commit 9508b383f2
1 changed files with 1 additions and 2 deletions

View File

@ -306,8 +306,7 @@ static std::optional<QVersionNumber> convert(const QtProtobufPrivate::QtCore::QV
return std::nullopt;
QList<int> versionList;
const auto segments = from.segments();
for (const auto &segment : segments)
for (const auto &segment : from.segments())
versionList.append(segment);
return QVersionNumber(versionList);
}