forked from qt-creator/qt-creator
macros: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: Id779aaf869406571288519083883ab57e5c29cec Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Internal {
|
||||
QSet<SymbolLocation> roleToLocations(const QList<QVariant> &locationsVar)
|
||||
{
|
||||
QSet<SymbolLocation> locations;
|
||||
foreach (const QVariant &loc, locationsVar) {
|
||||
for (const QVariant &loc : locationsVar) {
|
||||
if (loc.canConvert<SymbolLocation>())
|
||||
locations.insert(loc.value<SymbolLocation>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user