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) ...@@ -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 act->setEnabled(false); // don't allow text column to be hidden if name not used
else else
QObject::connect(act, &QAction::triggered, 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); enableTimeColumns(&menu);
......
...@@ -88,6 +88,7 @@ QVector<QDate> DayMatrix::selectedDates() const ...@@ -88,6 +88,7 @@ QVector<QDate> DayMatrix::selectedDates() const
QVector<QDate> selDays; QVector<QDate> selDays;
if (mSelStart != NO_SELECTION) if (mSelStart != NO_SELECTION)
{ {
selDays.reserve(mSelEnd - mSelStart + 1);
for (int i = mSelStart; i <= mSelEnd; ++i) for (int i = mSelStart; i <= mSelEnd; ++i)
selDays.append(mStartDate.addDays(i)); selDays.append(mStartDate.addDays(i));
} }
......
Supports Markdown
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