summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 11:05:38 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 11:07:20 -0700
commit5a4485b63b944a0030c1020afc44d753d0e32078 (patch)
tree032e21b2f026f58dd5b684b62bbeeec93408cb18
parent38e24512b74dcfb0f473fe0c8003c66e99354409 (diff)
downloadsubsurface-5a4485b63b944a0030c1020afc44d753d0e32078.tar.gz
Random whitespace cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/subsurfacesysinfo.cpp14
-rw-r--r--desktop-widgets/diveplanner.cpp2
-rw-r--r--desktop-widgets/diveshareexportdialog.h22
-rw-r--r--desktop-widgets/subsurfacewebservices.cpp2
4 files changed, 20 insertions, 20 deletions
diff --git a/core/subsurfacesysinfo.cpp b/core/subsurfacesysinfo.cpp
index 6f63a3011..fae93bdff 100644
--- a/core/subsurfacesysinfo.cpp
+++ b/core/subsurfacesysinfo.cpp
@@ -240,11 +240,11 @@ struct QUnixOSVersion
static QString unquote(const char *begin, const char *end)
{
- if (*begin == '"') {
- Q_ASSERT(end[-1] == '"');
- return QString::fromLatin1(begin + 1, end - begin - 2);
- }
- return QString::fromLatin1(begin, end - begin);
+ if (*begin == '"') {
+ Q_ASSERT(end[-1] == '"');
+ return QString::fromLatin1(begin + 1, end - begin - 2);
+ }
+ return QString::fromLatin1(begin, end - begin);
}
static bool readEtcOsRelease(QUnixOSVersion &v)
@@ -613,9 +613,9 @@ extern "C" {
bool isWin7Or8()
{
#ifdef Q_OS_WIN
- return (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based) >= QSysInfo::WV_WINDOWS7;
+ return (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based) >= QSysInfo::WV_WINDOWS7;
#else
- return false;
+ return false;
#endif
}
}
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp
index 0cffc5a91..dd91e88c7 100644
--- a/desktop-widgets/diveplanner.cpp
+++ b/desktop-widgets/diveplanner.cpp
@@ -509,7 +509,7 @@ void PlannerSettingsWidget::setDescRate(int rate)
void PlannerSettingsWidget::sacFactorChanged(const double factor)
{
- plannerModel->setSacFactor(factor);
+ plannerModel->setSacFactor(factor);
}
void PlannerSettingsWidget::problemSolvingTimeChanged(const int minutes)
diff --git a/desktop-widgets/diveshareexportdialog.h b/desktop-widgets/diveshareexportdialog.h
index 8384ea3c2..4fd13781a 100644
--- a/desktop-widgets/diveshareexportdialog.h
+++ b/desktop-widgets/diveshareexportdialog.h
@@ -15,21 +15,21 @@ class DiveShareExportDialog;
class DiveShareExportDialog : public QDialog
{
- Q_OBJECT
+ Q_OBJECT
public:
- explicit DiveShareExportDialog(QWidget *parent = 0);
- ~DiveShareExportDialog();
- static DiveShareExportDialog *instance();
- void prepareDivesForUpload(bool);
+ explicit DiveShareExportDialog(QWidget *parent = 0);
+ ~DiveShareExportDialog();
+ static DiveShareExportDialog *instance();
+ void prepareDivesForUpload(bool);
private:
- Ui::DiveShareExportDialog *ui;
- bool exportSelected;
- QNetworkReply *reply;
+ Ui::DiveShareExportDialog *ui;
+ bool exportSelected;
+ QNetworkReply *reply;
private
slots:
- void UIDFromBrowser();
- void doUpload();
- void finishedSlot();
+ void UIDFromBrowser();
+ void doUpload();
+ void finishedSlot();
};
#endif // DIVESHAREEXPORTDIALOG_H
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp
index 1182af097..f53b7eaad 100644
--- a/desktop-widgets/subsurfacewebservices.cpp
+++ b/desktop-widgets/subsurfacewebservices.cpp
@@ -450,7 +450,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button)
bool qSaveUid = ui.saveUidLocal->checkState();
SettingsObjectWrapper::instance()->cloud_storage->setSaveUserIdLocal(qSaveUid);
- //WARN: Dirk, this seems to be wrong, I coundn't really understand the code.
+ //WARN: Dirk, this seems to be wrong, I coundn't really understand the code.
if (qSaveUid) {
QString qSettingUid = s.value("subsurface_webservice_uid").toString();
QString qFileUid = QString(prefs.userid);