Skip to content

Commit 65c9c92

Browse files
authored
[NFC] use StringSet::insert(iter, iter) instead for loop to insert (#69851)
1 parent b997ff4 commit 65c9c92

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/ARCMigrate/ObjCMT.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ class ObjCMigrateASTConsumer : public ASTConsumer {
123123
NSIntegerTypedefed(nullptr), NSUIntegerTypedefed(nullptr),
124124
Remapper(remapper), FileMgr(fileMgr), PPRec(PPRec), PP(PP),
125125
IsOutputFile(isOutputFile), FoundationIncluded(false) {
126-
// FIXME: StringSet should have insert(iter, iter) to use here.
127-
for (const std::string &Val : AllowList)
128-
AllowListFilenames.insert(Val);
126+
AllowListFilenames.insert(AllowList.begin(), AllowList.end());
129127
}
130128

131129
protected:

0 commit comments

Comments
 (0)