diff --git a/companion/src/eeprominterface.cpp b/companion/src/eeprominterface.cpp index eac73ad43..a2d10c04b 100644 --- a/companion/src/eeprominterface.cpp +++ b/companion/src/eeprominterface.cpp @@ -92,7 +92,7 @@ QString getGVarString(int16_t val, bool sign) } } -RawSourceRange RawSource::getRange(const ModelData & model, const GeneralSettings & settings, unsigned int flags) +RawSourceRange RawSource::getRange(const ModelData & model, const GeneralSettings & settings, unsigned int flags) const { RawSourceRange result; diff --git a/companion/src/eeprominterface.h b/companion/src/eeprominterface.h index cf021003b..6d4c412bd 100644 --- a/companion/src/eeprominterface.h +++ b/companion/src/eeprominterface.h @@ -362,7 +362,7 @@ class RawSource { QString toString(const ModelData & model); - RawSourceRange getRange(const ModelData & model, const GeneralSettings & settings, unsigned int flags=0); + RawSourceRange getRange(const ModelData & model, const GeneralSettings & settings, unsigned int flags=0) const; bool operator == ( const RawSource & other) { return (this->type == other.type) && (this->index == other.index);