Random whitespace cleanup

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-05-27 11:05:38 -07:00
parent 38e24512b7
commit 5a4485b63b
4 changed files with 20 additions and 20 deletions

View file

@ -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
}
}

View file

@ -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)

View file

@ -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

View file

@ -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);