aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 13:25:55 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-03 13:29:22 -0800
commit7c535452f97947c0bf77a1da0323b86b9e514c8f (patch)
treeb3b7d43a057605ac91c805777978c504e672ba2d /qt-ui/mainwindow.cpp
parent917ce5aff50370e7dc4805920a4f5eec09884bb3 (diff)
downloadsubsurface-7c535452f97947c0bf77a1da0323b86b9e514c8f.tar.gz
Whitespace cleanup
Minor change to the perl postprocessing script and resulting changes to the affected source files. This deals with two issues: - "foreach"-like structures were not always treated correctly - some longer calculations that ended on "+ constant" were reformatted in a rather unatractive manner In one source file (divelist.c) I ended up adding braces to the sources... trying to cascade the indentation further down without having the block there seemed a lot more trouble than it's worth. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 43f596eb2..d25635c66 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -621,7 +621,7 @@ void MainWindow::initialUiSetup()
}
#define TOOLBOX_PREF_BUTTON(pref, setting, button) \
- prefs.pref = s.value(#setting).toBool(); \
+ prefs.pref = s.value(#setting).toBool(); \
ui.button->setChecked(prefs.pref);
void MainWindow::readSettings()
@@ -835,7 +835,7 @@ void MainWindow::removeRecentFile(QStringList failedFiles)
}
}
- foreach (QString file, failedFiles)
+ foreach(QString file, failedFiles)
files.removeAll(file);
for (int c = 1; c <= 4; c++) {