core/settings: add missing empty line.

Standard is to have 1 empty line between functions

correct missing static in qPrefGeocoding.h

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-09-02 11:50:55 +02:00 committed by Dirk Hohndel
parent 1a130ec461
commit 7940e45c4c
12 changed files with 14 additions and 3 deletions

View file

@ -5,6 +5,7 @@
qPref::qPref(QObject *parent) : QObject(parent)
{
}
qPref *qPref::instance()
{
static qPref *self = new qPref;

View file

@ -44,6 +44,7 @@ static int st_lastState_default = false;
qPrefDisplay::qPrefDisplay(QObject *parent) : QObject(parent)
{
}
qPrefDisplay *qPrefDisplay::instance()
{
static qPrefDisplay *self = new qPrefDisplay;

View file

@ -7,6 +7,7 @@ static const QString group = QStringLiteral("DiveComputer");
qPrefDiveComputer::qPrefDiveComputer(QObject *parent) : QObject(parent)
{
}
qPrefDiveComputer *qPrefDiveComputer::instance()
{
static qPrefDiveComputer *self = new qPrefDiveComputer;

View file

@ -8,6 +8,7 @@ static const QString group = QStringLiteral("Planner");
qPrefDivePlanner::qPrefDivePlanner(QObject *parent) : QObject(parent)
{
}
qPrefDivePlanner *qPrefDivePlanner::instance()
{
static qPrefDivePlanner *self = new qPrefDivePlanner;

View file

@ -7,6 +7,7 @@ static const QString group = QStringLiteral("WebApps/Facebook");
qPrefFacebook::qPrefFacebook(QObject *parent) : QObject(parent)
{
}
qPrefFacebook*qPrefFacebook::instance()
{
static qPrefFacebook *self = new qPrefFacebook;

View file

@ -14,6 +14,7 @@ static const bool st_diveshareExport_private_default = false;
qPrefGeneral::qPrefGeneral(QObject *parent) : QObject(parent)
{
}
qPrefGeneral *qPrefGeneral::instance()
{
static qPrefGeneral *self = new qPrefGeneral;

View file

@ -7,6 +7,7 @@ static const QString group = QStringLiteral("geocoding");
qPrefGeocoding::qPrefGeocoding(QObject *parent) : QObject(parent)
{
}
qPrefGeocoding *qPrefGeocoding::instance()
{
static qPrefGeocoding *self = new qPrefGeocoding;

View file

@ -17,9 +17,9 @@ public:
static qPrefGeocoding *instance();
// Load/Sync local settings (disk) and struct preference
void loadSync(bool doSync);
void load() { loadSync(false); }
void sync() { loadSync(true); }
static void loadSync(bool doSync);
static void load() { loadSync(false); }
static void sync() { loadSync(true); }
public:
taxonomy_category first_taxonomy_category() { return prefs.geocoding.category[0]; }

View file

@ -7,6 +7,7 @@ static const QString group = QStringLiteral("LocationService");
qPrefLocationService::qPrefLocationService(QObject *parent) : QObject(parent)
{
}
qPrefLocationService *qPrefLocationService::instance()
{
static qPrefLocationService *self = new qPrefLocationService;

View file

@ -7,6 +7,7 @@ static const QString group = QStringLiteral("TecDetails");
qPrefPartialPressureGas::qPrefPartialPressureGas(QObject *parent) : QObject(parent)
{
}
qPrefPartialPressureGas *qPrefPartialPressureGas::instance()
{
static qPrefPartialPressureGas *self = new qPrefPartialPressureGas;

View file

@ -9,6 +9,7 @@ static const QString group = QStringLiteral("Network");
qPrefProxy::qPrefProxy(QObject *parent) : QObject(parent)
{
}
qPrefProxy *qPrefProxy::instance()
{
static qPrefProxy *self = new qPrefProxy;

View file

@ -8,6 +8,7 @@ static const QString group = QStringLiteral("Units");
qPrefUnits::qPrefUnits(QObject *parent) : QObject(parent)
{
}
qPrefUnits *qPrefUnits::instance()
{
static qPrefUnits *self = new qPrefUnits;