forked from qt-creator/qt-creator
MarketPlace: Avoid needless copy
Reported by Coverity. Change-Id: Ied6f7f6cd8cf295ea39ee813e38cf19585c9dcc2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
fa2ea6fd97
commit
7dc1e2031f
@@ -173,7 +173,7 @@ void SectionedProducts::onFetchSingleCollectionFinished(QNetworkReply *reply)
|
||||
|
||||
product->handle = handle;
|
||||
const QJsonArray tags = obj.value("tags").toArray();
|
||||
for (auto val : tags)
|
||||
for (const auto &val : tags)
|
||||
product->tags.append(val.toString());
|
||||
|
||||
const auto images = obj.value("images").toArray();
|
||||
|
||||
Reference in New Issue
Block a user