Util: Pass string by const reference
This commit is contained in:
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
+1
-1
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user