mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-01 17:41:12 +00:00
refactor: resolve Sonar cpp:S1172 findings (#5916)
This commit is contained in:
1 parent
7c124b4392
commit
3710a231df
15 files changed
+294
-112
No files matched your search
@@ -471,7 +471,11 @@ namespace platf {
|
||||
return "00:00:00:00:00:00"s;
|
||||
}
|
||||
|
||||
bp::child run_command(bool elevated, bool interactive, const std::string &cmd, boost::filesystem::path &working_dir, const bp::environment &env, FILE *file, std::error_code &ec, bp::group *group) {
|
||||
/**
|
||||
* @brief Launch a command using the caller's Linux privileges and session.
|
||||
* @details The common platform signature's elevation and interactivity flags do not apply on Linux.
|
||||
*/
|
||||
bp::child run_command(bool, bool, const std::string &cmd, boost::filesystem::path &working_dir, const bp::environment &env, FILE *file, std::error_code &ec, bp::group *group) {
|
||||
// clang-format off
|
||||
if (!group) {
|
||||
if (!file) {
|
||||
|
||||
Reference in new issue
Block a user