Avoid copy in for range loop.
This commit is contained in:
parent
5f724e57bc
commit
6ef3be23fd
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ void CommonWebContentsDelegate::DevToolsRequestFileSystems() {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<FileSystem> file_systems;
|
std::vector<FileSystem> file_systems;
|
||||||
for (auto file_system_path : file_system_paths) {
|
for (const auto& file_system_path : file_system_paths) {
|
||||||
base::FilePath path = base::FilePath::FromUTF8Unsafe(file_system_path);
|
base::FilePath path = base::FilePath::FromUTF8Unsafe(file_system_path);
|
||||||
std::string file_system_id = RegisterFileSystem(GetDevToolsWebContents(),
|
std::string file_system_id = RegisterFileSystem(GetDevToolsWebContents(),
|
||||||
path);
|
path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue