mirror of https://github.com/qt/qtgrpc.git
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:
parent
e0257e5d0b
commit
9508b383f2
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue