Fix -Wloop-analysis: base/
This has no effect on performance; it makes explicit a lifetime extension of a temp that was already occurring. Bug: 1223264 Change-Id: I40c90f25bfd5253779ae176d75b5bb852e6e86d3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3023546 Auto-Submit: Peter Kasting <pkasting@chromium.org> Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#901033}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
a66d36cf3e
commit
09d80ad0f3
@ -325,7 +325,7 @@ bool TraceEventTestFixture::FindNonMatchingValue(const char* key,
|
||||
}
|
||||
|
||||
bool IsStringInDict(const char* string_to_match, const Value* dict) {
|
||||
for (const auto& pair : dict->DictItems()) {
|
||||
for (const auto pair : dict->DictItems()) {
|
||||
if (pair.first.find(string_to_match) != std::string::npos)
|
||||
return true;
|
||||
|
||||
|
Reference in New Issue
Block a user