wait_for_exit param should be const
This commit is contained in:
parent
79ba8feaf8
commit
46365f4076
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ namespace {
|
||||||
|
|
||||||
bool XDGUtil(const std::string& util,
|
bool XDGUtil(const std::string& util,
|
||||||
const std::string& arg,
|
const std::string& arg,
|
||||||
bool wait_for_exit) {
|
const bool wait_for_exit) {
|
||||||
std::vector<std::string> argv;
|
std::vector<std::string> argv;
|
||||||
argv.push_back(util);
|
argv.push_back(util);
|
||||||
argv.push_back(arg);
|
argv.push_back(arg);
|
||||||
|
@ -42,11 +42,11 @@ bool XDGUtil(const std::string& util,
|
||||||
return (exit_code == 0);
|
return (exit_code == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool XDGOpen(const std::string& path, bool wait_for_exit) {
|
bool XDGOpen(const std::string& path, const bool wait_for_exit) {
|
||||||
return XDGUtil("xdg-open", path, wait_for_exit);
|
return XDGUtil("xdg-open", path, wait_for_exit);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool XDGEmail(const std::string& email, bool wait_for_exit) {
|
bool XDGEmail(const std::string& email, const bool wait_for_exit) {
|
||||||
return XDGUtil("xdg-email", email, wait_for_exit);
|
return XDGUtil("xdg-email", email, wait_for_exit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue