Skip to content

Commit

Permalink
prefer constants
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Sep 11, 2021
1 parent 3f347d0 commit 6019601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/ebus/symbol.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,13 @@ class MasterSymbolString : public SymbolString {

MasterSymbolString& operator=(const MasterSymbolString& other) {
this->m_data = other.m_data;
this->m_isMaster = other.m_isMaster;
this->m_isMaster = true;
return *this;
}

MasterSymbolString& operator=(const MasterSymbolString* other) {
this->m_data = other->m_data;
this->m_isMaster = other->m_isMaster;
this->m_isMaster = true;
return *this;
}

Expand All @@ -393,13 +393,13 @@ class SlaveSymbolString : public SymbolString {

SlaveSymbolString& operator=(const SlaveSymbolString& other) {
this->m_data = other.m_data;
this->m_isMaster = other.m_isMaster;
this->m_isMaster = false;
return *this;
}

SlaveSymbolString& operator=(const SlaveSymbolString* other) {
this->m_data = other->m_data;
this->m_isMaster = other->m_isMaster;
this->m_isMaster = false;
return *this;
}

Expand Down

0 comments on commit 6019601

Please sign in to comment.