Browse Source

hm: Fix ignored qualifiers warning

When building with -Wextra this warning popped up.  It's useless to
return a const bool here, because it's a copy anyway.  Instead for C++
const correctness a getter has the keyword in the back which means you
won't change your object when calling this method.

Fixes: 51fbe7868c ("added command queue")
pull/1191/head
Alexander Dahl 2 years ago
parent
commit
af6dc12eba
  1. 2
      src/hm/hmInverter.h

2
src/hm/hmInverter.h

@ -88,7 +88,7 @@ class CommandAbstract {
};
virtual ~CommandAbstract() {};
const uint8_t getCmd() {
uint8_t getCmd() const {
return _Cmd;
}

Loading…
Cancel
Save