chore: fix clang-tidy warnings (#38079)
* chore: fix clang-tidy warnings * refactor: avoid need for NOLINTNEXTLINE
This commit is contained in:
parent
fe5cdd39d6
commit
08593fd2bd
20 changed files with 41 additions and 37 deletions
|
@ -36,8 +36,7 @@ std::string MakeCaseInsensitivePattern(const std::string& extension) {
|
|||
return extension;
|
||||
|
||||
std::string pattern("*.");
|
||||
for (std::size_t i = 0, n = extension.size(); i < n; i++) {
|
||||
char ch = extension[i];
|
||||
for (char ch : extension) {
|
||||
if (!base::IsAsciiAlpha(ch)) {
|
||||
pattern.push_back(ch);
|
||||
continue;
|
||||
|
|
|
@ -283,7 +283,7 @@ void ReadDialogPathsWithBookmarks(NSOpenPanel* dialog,
|
|||
NSArray* urls = [dialog URLs];
|
||||
for (NSURL* url in urls)
|
||||
if ([url isFileURL]) {
|
||||
paths->push_back(base::FilePath(base::SysNSStringToUTF8([url path])));
|
||||
paths->emplace_back(base::SysNSStringToUTF8([url path]));
|
||||
bookmarks->push_back(GetBookmarkDataFromNSURL(url));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -152,7 +152,7 @@ void AddPropertyFilters(std::vector<ui::AXPropertyFilter>* property_filters,
|
|||
ui::AXPropertyFilter::Type type) {
|
||||
for (const std::string& attribute : base::SplitString(
|
||||
attributes, " ", base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY)) {
|
||||
property_filters->push_back(ui::AXPropertyFilter(attribute, type));
|
||||
property_filters->emplace_back(attribute, type);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue