Commit 75d40bc1 authored by David Jarvie's avatar David Jarvie
Browse files

Fix clang warnings

parent c8be8a9a
Pipeline #84985 passed with stage
in 13 minutes and 41 seconds
......@@ -150,7 +150,7 @@ void AlarmListView::headerContextMenuRequested(const QPoint& pt)
act->setEnabled(false); // don't allow text column to be hidden if name not used
else
QObject::connect(act, &QAction::triggered,
this, [this, &menu, act] { showHideColumn(menu, act); });
this, [this, &menu, act] { showHideColumn(menu, act); }); //clazy:exclude=lambda-in-connect
}
}
enableTimeColumns(&menu);
......
......@@ -88,6 +88,7 @@ QVector<QDate> DayMatrix::selectedDates() const
QVector<QDate> selDays;
if (mSelStart != NO_SELECTION)
{
selDays.reserve(mSelEnd - mSelStart + 1);
for (int i = mSelStart; i <= mSelEnd; ++i)
selDays.append(mStartDate.addDays(i));
}
......
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