Fix build: Compare non-const iterator with non-const iterator

...maybe this is not an error with all compiler / Qt configurations
This commit is contained in:
Andreas Hartmetz 2017-04-07 19:35:14 +02:00
parent 1648844005
commit 0fa4c27c66

View file

@ -833,7 +833,7 @@ void ScreenEdges::setActionForTouchBorder(ElectricBorder border, ElectricBorderA
{
auto it = m_touchActions.find(border);
ElectricBorderAction oldValue = ElectricActionNone;
if (it != m_touchActions.constEnd()) {
if (it != m_touchActions.end()) {
oldValue = it.value();
}
if (oldValue == newValue) {