== operator is now const

This commit is contained in:
canpadawan
2016-06-24 17:28:30 +02:00
parent b7daf0f400
commit d173e26f9a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ CANBus::CANBus(const CANBus& pBus) :
active(pBus.active) {}
bool CANBus::operator==(CANBus& bus) {
bool CANBus::operator==(const CANBus& bus) const{
return speed == bus.speed &&
listenOnly == bus.listenOnly &&
singleWire == bus.singleWire &&
+1 -1
View File
@@ -7,7 +7,7 @@ class CANBus
public:
CANBus();
CANBus(const CANBus&);
bool operator==(CANBus&);
bool operator==(const CANBus&) const;
virtual ~CANBus(){}; /*TODO: remove connection from CANBus and add CANBus as an element of CANConnection */
int speed;
bool listenOnly;