diff options
Diffstat (limited to 'qt-ui/completionmodels.cpp')
-rw-r--r-- | qt-ui/completionmodels.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/completionmodels.cpp b/qt-ui/completionmodels.cpp index c4a4eeb8d..a66b8d022 100644 --- a/qt-ui/completionmodels.cpp +++ b/qt-ui/completionmodels.cpp @@ -23,9 +23,9 @@ void Class::updateModel() \ QStringList list; \ struct dive* dive; \ int i = 0; \ - for_each_dive(i, dive){ \ + for_each_dive(i, dive) { \ QString buddy(dive->diveStructMember); \ - if (!list.contains(buddy)){ \ + if (!list.contains(buddy)) { \ list.append(buddy); \ } \ } \ @@ -37,7 +37,7 @@ void BuddyCompletionModel::updateModel() QSet<QString> set; struct dive* dive; int i = 0; - for_each_dive(i, dive){ + for_each_dive(i, dive) { QString buddy(dive->buddy); foreach (const QString &value, buddy.split(",", QString::SkipEmptyParts)) { set.insert(value.trimmed()); @@ -52,7 +52,7 @@ CREATE_UPDATE_METHOD(SuitCompletionModel, suit); void TagCompletionModel::updateModel() { - if(g_tag_list == NULL) + if (g_tag_list == NULL) return; QStringList list; struct tag_entry *current_tag_entry = g_tag_list->next; |