forked from qt-creator/qt-creator
Fix clang warnings about unwanted copies in range loops
Change-Id: I11ae3317fd251a463809ee48917d2daf0f8b43d1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1142,8 +1142,7 @@ ClassOrNamespace *ClassOrNamespace::nestedType(const Name *name,
|
||||
|
||||
int maximumArgumentsMatched = 0;
|
||||
|
||||
for (const std::pair<const TemplateNameId *, ClassOrNamespace *> &p :
|
||||
specializations) {
|
||||
for (const auto &p : specializations) {
|
||||
const TemplateNameId *templateSpecialization = p.first;
|
||||
ClassOrNamespace *specializationClassOrNamespace = p.second;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user