Const correctness fix for optionlist

This commit is contained in:
AlexandreRouma
2023-03-09 15:14:33 +01:00
parent 5f0858bab2
commit 314b8bf72d
4 changed files with 25 additions and 25 deletions

View File

@ -25,7 +25,7 @@ ConfigManager config;
struct DeviceInfo {
RtAudio::DeviceInfo info;
int id;
bool operator==(const struct DeviceInfo& other) {
bool operator==(const struct DeviceInfo& other) const {
return other.id == id;
}
};

View File

@ -39,7 +39,7 @@ namespace hermes {
uint8_t gatewareVerMin;
BoardID boardId;
bool operator==(const Info& b) {
bool operator==(const Info& b) const {
return !memcmp(mac, b.mac, 6);
}
};

View File

@ -503,7 +503,7 @@ private:
float refStep = 0.5;
struct SRCombo {
bool operator==(const SRCombo& b) {
bool operator==(const SRCombo& b) const {
return baseId == b.baseId && decimId == b.decimId;
}