Pass the environment as a const reference so nobody else is tempted to modify it

This commit is contained in:
Cameron Gutman
2023-08-14 19:36:02 -05:00
parent 774f13aecb
commit 22ab9948fa
4 changed files with 4 additions and 4 deletions

View File

@@ -547,7 +547,7 @@ namespace platf {
display_names(mem_type_e hwdevice_type);
boost::process::child
run_command(bool elevated, bool interactive, const std::string &cmd, boost::filesystem::path &working_dir, boost::process::environment &env, FILE *file, std::error_code &ec, boost::process::group *group);
run_command(bool elevated, bool interactive, const std::string &cmd, boost::filesystem::path &working_dir, const boost::process::environment &env, FILE *file, std::error_code &ec, boost::process::group *group);
enum class thread_priority_e : int {
low,