Skip to content

Commit

Permalink
Provide missing operator+=(char) implementation for UByteArray
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajSchlej committed Feb 24, 2025
1 parent af288d0 commit f789dac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/ubytearray.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class UByteArray

UByteArray & operator=(const UByteArray & ba) { d = ba.d; return *this; }
UByteArray & operator+=(const UByteArray & ba) { d += ba.d; return *this; }
UByteArray & operator+=(const char c) { d += c; return *this; }
bool operator== (const UByteArray & ba) const { return d == ba.d; }
bool operator!= (const UByteArray & ba) const { return d != ba.d; }
inline void swap(UByteArray &other) { std::swap(d, other.d); }
Expand Down

0 comments on commit f789dac

Please sign in to comment.