From f3b20b482eb60e3bf8844830c229ad8b5669580f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 22 Apr 2017 20:28:12 +0200 Subject: [PATCH] Use end() instead of constEnd() for where we compare to an iterator --- keyboard_layout_switching.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboard_layout_switching.cpp b/keyboard_layout_switching.cpp index e397b7378a..27df133bd9 100644 --- a/keyboard_layout_switching.cpp +++ b/keyboard_layout_switching.cpp @@ -116,7 +116,7 @@ void VirtualDesktopPolicy::layoutChanged() } auto it = m_layouts.find(d); const auto l = layout(); - if (it == m_layouts.constEnd()) { + if (it == m_layouts.end()) { m_layouts.insert(d, l); connect(d, &VirtualDesktop::aboutToBeDestroyed, this, [this, d] { @@ -170,7 +170,7 @@ void WindowPolicy::layoutChanged() auto it = m_layouts.find(c); const auto l = layout(); - if (it == m_layouts.constEnd()) { + if (it == m_layouts.end()) { m_layouts.insert(c, l); connect(c, &AbstractClient::windowClosed, this, [this, c] { @@ -232,7 +232,7 @@ void ApplicationPolicy::layoutChanged() auto it = m_layouts.find(c); const auto l = layout(); - if (it == m_layouts.constEnd()) { + if (it == m_layouts.end()) { m_layouts.insert(c, l); connect(c, &AbstractClient::windowClosed, this, [this, c] {