mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
Fix warning: add explicit braces to avoid dangling else
This commit is contained in:
committed by
Alejandro Martinez
parent
d55c7ecd7e
commit
68fb3649e2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user