Skip to content

Commit

Permalink
forgot one small cppcheck change
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBoule committed Mar 16, 2024
1 parent cb2b4b3 commit 2de1774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ShapeMaster/Menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct TimeValueField : ui::TextField {
// TextField::step();
}

void setChannel(Channel* _channel, std::string initText, int _pt, float _length) {
void setChannel(Channel* _channel, const std::string& initText, int _pt, float _length) {
channel = _channel;
text = initText;
pt = _pt;
Expand Down Expand Up @@ -174,7 +174,7 @@ struct VoltValueField : ui::TextField {
// TextField::step();
}

void setChannel(Channel* _channel, std::string initText, int _pt, float _length) {
void setChannel(Channel* _channel, const std::string& initText, int _pt, float _length) {
channel = _channel;
text = initText;
pt = _pt;
Expand Down

0 comments on commit 2de1774

Please sign in to comment.