Fix warning: add explicit braces to avoid dangling else

This commit is contained in:
Dmytro Maslenko
2025-07-25 20:02:03 -07:00
committed by Alejandro Martinez
parent d55c7ecd7e
commit 68fb3649e2

View File

@@ -325,9 +325,10 @@ public:
QVector<int> *arr = dateToRows.value(date(proxyIndex), NULL);
QStringList strings;
if (arr)
if (arr) {
foreach (int i, *arr)
filenames << sourceModel()->data(index(i, filenameIndex, QModelIndex())).toString();
}
#ifdef GC_HAVE_ICAL
// fold in planned workouts
@@ -347,9 +348,10 @@ public:
QVector<int> *arr = dateToRows.value(date(proxyIndex), NULL);
QStringList strings;
if (arr)
if (arr) {
foreach (int i, *arr)
strings << sourceModel()->data(index(i, textIndex, QModelIndex())).toString();
}
#ifdef GC_HAVE_ICAL
// fold in planned workouts