Skip to content

Commit

Permalink
fix unneeded reference for add of bool, char (#7973)
Browse files Browse the repository at this point in the history
  • Loading branch information
2bbb committed May 22, 2024
1 parent 45873d9 commit 0722250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/ofxOsc/src/ofxOscMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class ofxOscMessage {
/// add a char
/// \return a reference to this ofxOscMessage
ofxOscMessage & addCharArg(char argument);
ofxOscMessage & add(char & argument) { return addCharArg(argument); }
ofxOscMessage & add(char argument) { return addCharArg(argument); }

/// add a 4-byte MIDI message
/// \return a reference to this ofxOscMessage
Expand All @@ -226,7 +226,7 @@ class ofxOscMessage {
/// true sends a OFXOSC_TYPE_TRUE & false sends a OFXOSC_TYPE_FALSE
/// \return a reference to this ofxOscMessage
ofxOscMessage & addBoolArg(bool argument);
ofxOscMessage & add(bool & argument) { return addBoolArg(argument); }
ofxOscMessage & add(bool argument) { return addBoolArg(argument); }

/// add a none/nil (has no value)
/// \return a reference to this ofxOscMessage
Expand Down

0 comments on commit 0722250

Please sign in to comment.