Skip to content

Commit

Permalink
[C++] Use const reference to avoid potential copies.
Browse files Browse the repository at this point in the history
  • Loading branch information
denizevrenci committed Feb 6, 2019
1 parent 20ee032 commit a77554c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aeron-client/src/main/cpp/util/CommandOption.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class CommandOption
return m_helpText;
}

void addParam(std::string p)
void addParam(const std::string& p)
{
m_params.push_back(p);
}
Expand Down

0 comments on commit a77554c

Please sign in to comment.