Skip to content

Commit

Permalink
CStringArray::operator += must use reference, not copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 17, 2024
1 parent e0202a1 commit af6ce45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Core/Data/CStringArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class CStringArray : private String
* @brief Append numbers, etc. to the array
* @param value char, int, float, etc. as supported by String
*/
template <typename T> CStringArray& operator+=(T value)
template <typename T> CStringArray& operator+=(const T& value)
{
add(String(value));
return *this;
Expand Down

0 comments on commit af6ce45

Please sign in to comment.