mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Whitespace and coding style updates
Another futile attempt to cleanup the code and make coding style and whitespace consistent. I tried to add a file that describes the key points of our coding style. I have no illusions that this will help the least bit... This commit should ONLY change whitespace Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3387ccc6f6
commit
a27f67c026
28 changed files with 387 additions and 323 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue