diff --git a/src/util/shell.cpp b/src/util/shell.cpp index 12f06d4..128e8a3 100644 --- a/src/util/shell.cpp +++ b/src/util/shell.cpp @@ -10,7 +10,7 @@ Shell::Shell() { } -Shell::Shell(std::string output, int status) +Shell::Shell(const std::string& output, int status) : m_output(output) , m_status(status) { diff --git a/src/util/shell.h b/src/util/shell.h index 8b20003..a272f6d 100644 --- a/src/util/shell.h +++ b/src/util/shell.h @@ -19,7 +19,7 @@ public: int status() const { return m_status; } private: - Shell(std::string output, int status); + Shell(const std::string& output, int status); std::string m_output; int m_status { 0 };