Skip to content

Commit

Permalink
[REFACT] Pass string argument by a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Jan 24, 2025
1 parent 9d0b0b8 commit 2b29189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etw_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void ETWProfile::stripComments(std::string& str)
}
}

bool ETWProfile::fillSettings(std::string line)
bool ETWProfile::fillSettings(const std::string &line)
{
using namespace util;

Expand Down
2 changes: 1 addition & 1 deletion etw_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ struct ETWProfile {
protected:
static const char DELIM;

bool fillSettings(std::string line);
bool fillSettings(const std::string& line);
void stripComments(std::string& str);
};

0 comments on commit 2b29189

Please sign in to comment.