* spot/twa/acc.hh: fix constness

This commit is contained in:
Maximilien Colange 2018-07-28 16:46:41 +02:00 committed by Alexandre Duret-Lutz
parent 483b05c550
commit d8419db618

View file

@ -729,14 +729,14 @@ namespace spot
return *this; return *this;
} }
acc_code operator&(const acc_code& r) acc_code operator&(const acc_code& r) const
{ {
acc_code res = *this; acc_code res = *this;
res &= r; res &= r;
return res; return res;
} }
acc_code operator&(acc_code&& r) acc_code operator&(acc_code&& r) const
{ {
acc_code res = *this; acc_code res = *this;
res &= r; res &= r;
@ -829,14 +829,14 @@ namespace spot
return *this; return *this;
} }
acc_code operator|(acc_code&& r) acc_code operator|(acc_code&& r) const
{ {
acc_code res = *this; acc_code res = *this;
res |= r; res |= r;
return res; return res;
} }
acc_code operator|(const acc_code& r) acc_code operator|(const acc_code& r) const
{ {
acc_code res = *this; acc_code res = *this;
res |= r; res |= r;