commit | 79cad2595dcc6803aec3ed7d8c8e96591f527ac9 | [log] [tgz] |
---|---|---|
author | Daniel Bratell <bratell@opera.com> | Wed Feb 20 16:24:43 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 20 16:24:43 2019 |
tree | c07ef0622ae66a1facb0069416862571a25157df | |
parent | a4caf7651beffd5ef5e2436e9273664488229178 [diff] |
Remove variable shadowing in blink/modules/filesystem In an effort to reduce or even ban variable shadowing, this renames a variable to avoid such shadowing. I'm interested in prohibiting shadowing because I think it might prevent potential jumbo problems. The exact warnings this avoids is: third_party/blink/renderer/modules/filesystem/directory_reader.cc:140:21: error: declaration shadows a local variable [-Werror,-Wshadow] EntryHeapVector entries; ^ third_party/blink/renderer/modules/filesystem/directory_reader.cc:136:57: note: previous declaration is here void DirectoryReader::AddEntries(const EntryHeapVector& entries) { ^ third_party/blink/renderer/modules/filesystem/dom_window_file_system.cc:248:37: error: declaration shadows a local variable [-Werror,-Wshadow] Vector<ScriptPromise> result; ^ third_party/blink/renderer/modules/filesystem/dom_window_file_system.cc:238:32: note: previous declaration is here base::File::Error result, ^ Bug: 923510 Change-Id: Ib907382435b0d1417e9ca2f070bfb68ef591e123 Reviewed-on: https://chromium-review.googlesource.com/c/1478871 Commit-Queue: Daniel Bratell <bratell@opera.com> Commit-Queue: Kentaro Hara <haraken@chromium.org> Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Auto-Submit: Daniel Bratell <bratell@opera.com> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Cr-Commit-Position: refs/heads/master@{#633728}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .