Commit a5d2b7a4 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix const ref warning

parent d550d7a9
...@@ -171,7 +171,8 @@ bool KateViewSpace::eventFilter(QObject *obj, QEvent *event) ...@@ -171,7 +171,8 @@ bool KateViewSpace::eventFilter(QObject *obj, QEvent *event)
void KateViewSpace::statusBarToggled() void KateViewSpace::statusBarToggled()
{ {
KateUpdateDisabler updatesDisabled(m_viewManager->mainWindow()); KateUpdateDisabler updatesDisabled(m_viewManager->mainWindow());
for (const auto [doc, view] : m_docToView) { for (const auto &[_, view] : m_docToView) {
Q_UNUSED(_)
view->setStatusBarEnabled(m_viewManager->mainWindow()->showStatusBar()); view->setStatusBarEnabled(m_viewManager->mainWindow()->showStatusBar());
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment