Fix issues found by Codacy

This commit is contained in:
Alexey Rybalchenko
2018-10-08 12:42:35 +02:00
committed by Dennis Klein
parent 985150437a
commit e1f555bc05
25 changed files with 53 additions and 73 deletions

View File

@@ -30,7 +30,7 @@ namespace tools
* @param[in] log_prefix How to prefix each captured output line with
* @return Captured stdout output and exit code
*/
execute_result execute(string cmd, string prefix)
execute_result execute(const string& cmd, const string& prefix)
{
execute_result result;
stringstream out;

View File

@@ -35,7 +35,7 @@ struct execute_result
* @param[in] log_prefix How to prefix each captured output line with
* @return Captured stdout output and exit code
*/
execute_result execute(std::string cmd, std::string prefix = "");
execute_result execute(const std::string& cmd, const std::string& prefix = "");
} /* namespace tools */
} /* namespace mq */