chore: use emplace when possible (#37877)
This commit is contained in:
parent
3c0c4d5c27
commit
82442239bc
4 changed files with 9 additions and 9 deletions
|
@ -82,8 +82,8 @@ int LaunchProgram(const StringVector& relauncher_args,
|
|||
|
||||
base::LaunchOptions options;
|
||||
options.new_process_group = true; // detach
|
||||
options.fds_to_remap.push_back(std::make_pair(devnull.get(), STDERR_FILENO));
|
||||
options.fds_to_remap.push_back(std::make_pair(devnull.get(), STDOUT_FILENO));
|
||||
options.fds_to_remap.emplace_back(devnull.get(), STDERR_FILENO);
|
||||
options.fds_to_remap.emplace_back(devnull.get(), STDOUT_FILENO);
|
||||
|
||||
base::Process process = base::LaunchProcess(argv, options);
|
||||
return process.IsValid() ? 0 : 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue