mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 22:23:51 +00:00
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:
parent
1a130ec461
commit
7940e45c4c
12 changed files with 14 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
||||||
qPref::qPref(QObject *parent) : QObject(parent)
|
qPref::qPref(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPref *qPref::instance()
|
qPref *qPref::instance()
|
||||||
{
|
{
|
||||||
static qPref *self = new qPref;
|
static qPref *self = new qPref;
|
||||||
|
|
|
@ -44,6 +44,7 @@ static int st_lastState_default = false;
|
||||||
qPrefDisplay::qPrefDisplay(QObject *parent) : QObject(parent)
|
qPrefDisplay::qPrefDisplay(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefDisplay *qPrefDisplay::instance()
|
qPrefDisplay *qPrefDisplay::instance()
|
||||||
{
|
{
|
||||||
static qPrefDisplay *self = new qPrefDisplay;
|
static qPrefDisplay *self = new qPrefDisplay;
|
||||||
|
|
|
@ -7,6 +7,7 @@ static const QString group = QStringLiteral("DiveComputer");
|
||||||
qPrefDiveComputer::qPrefDiveComputer(QObject *parent) : QObject(parent)
|
qPrefDiveComputer::qPrefDiveComputer(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefDiveComputer *qPrefDiveComputer::instance()
|
qPrefDiveComputer *qPrefDiveComputer::instance()
|
||||||
{
|
{
|
||||||
static qPrefDiveComputer *self = new qPrefDiveComputer;
|
static qPrefDiveComputer *self = new qPrefDiveComputer;
|
||||||
|
|
|
@ -8,6 +8,7 @@ static const QString group = QStringLiteral("Planner");
|
||||||
qPrefDivePlanner::qPrefDivePlanner(QObject *parent) : QObject(parent)
|
qPrefDivePlanner::qPrefDivePlanner(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefDivePlanner *qPrefDivePlanner::instance()
|
qPrefDivePlanner *qPrefDivePlanner::instance()
|
||||||
{
|
{
|
||||||
static qPrefDivePlanner *self = new qPrefDivePlanner;
|
static qPrefDivePlanner *self = new qPrefDivePlanner;
|
||||||
|
|
|
@ -7,6 +7,7 @@ static const QString group = QStringLiteral("WebApps/Facebook");
|
||||||
qPrefFacebook::qPrefFacebook(QObject *parent) : QObject(parent)
|
qPrefFacebook::qPrefFacebook(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefFacebook*qPrefFacebook::instance()
|
qPrefFacebook*qPrefFacebook::instance()
|
||||||
{
|
{
|
||||||
static qPrefFacebook *self = new qPrefFacebook;
|
static qPrefFacebook *self = new qPrefFacebook;
|
||||||
|
|
|
@ -14,6 +14,7 @@ static const bool st_diveshareExport_private_default = false;
|
||||||
qPrefGeneral::qPrefGeneral(QObject *parent) : QObject(parent)
|
qPrefGeneral::qPrefGeneral(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefGeneral *qPrefGeneral::instance()
|
qPrefGeneral *qPrefGeneral::instance()
|
||||||
{
|
{
|
||||||
static qPrefGeneral *self = new qPrefGeneral;
|
static qPrefGeneral *self = new qPrefGeneral;
|
||||||
|
|
|
@ -7,6 +7,7 @@ static const QString group = QStringLiteral("geocoding");
|
||||||
qPrefGeocoding::qPrefGeocoding(QObject *parent) : QObject(parent)
|
qPrefGeocoding::qPrefGeocoding(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefGeocoding *qPrefGeocoding::instance()
|
qPrefGeocoding *qPrefGeocoding::instance()
|
||||||
{
|
{
|
||||||
static qPrefGeocoding *self = new qPrefGeocoding;
|
static qPrefGeocoding *self = new qPrefGeocoding;
|
||||||
|
|
|
@ -17,9 +17,9 @@ public:
|
||||||
static qPrefGeocoding *instance();
|
static qPrefGeocoding *instance();
|
||||||
|
|
||||||
// Load/Sync local settings (disk) and struct preference
|
// Load/Sync local settings (disk) and struct preference
|
||||||
void loadSync(bool doSync);
|
static void loadSync(bool doSync);
|
||||||
void load() { loadSync(false); }
|
static void load() { loadSync(false); }
|
||||||
void sync() { loadSync(true); }
|
static void sync() { loadSync(true); }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
taxonomy_category first_taxonomy_category() { return prefs.geocoding.category[0]; }
|
taxonomy_category first_taxonomy_category() { return prefs.geocoding.category[0]; }
|
||||||
|
|
|
@ -7,6 +7,7 @@ static const QString group = QStringLiteral("LocationService");
|
||||||
qPrefLocationService::qPrefLocationService(QObject *parent) : QObject(parent)
|
qPrefLocationService::qPrefLocationService(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefLocationService *qPrefLocationService::instance()
|
qPrefLocationService *qPrefLocationService::instance()
|
||||||
{
|
{
|
||||||
static qPrefLocationService *self = new qPrefLocationService;
|
static qPrefLocationService *self = new qPrefLocationService;
|
||||||
|
|
|
@ -7,6 +7,7 @@ static const QString group = QStringLiteral("TecDetails");
|
||||||
qPrefPartialPressureGas::qPrefPartialPressureGas(QObject *parent) : QObject(parent)
|
qPrefPartialPressureGas::qPrefPartialPressureGas(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefPartialPressureGas *qPrefPartialPressureGas::instance()
|
qPrefPartialPressureGas *qPrefPartialPressureGas::instance()
|
||||||
{
|
{
|
||||||
static qPrefPartialPressureGas *self = new qPrefPartialPressureGas;
|
static qPrefPartialPressureGas *self = new qPrefPartialPressureGas;
|
||||||
|
|
|
@ -9,6 +9,7 @@ static const QString group = QStringLiteral("Network");
|
||||||
qPrefProxy::qPrefProxy(QObject *parent) : QObject(parent)
|
qPrefProxy::qPrefProxy(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefProxy *qPrefProxy::instance()
|
qPrefProxy *qPrefProxy::instance()
|
||||||
{
|
{
|
||||||
static qPrefProxy *self = new qPrefProxy;
|
static qPrefProxy *self = new qPrefProxy;
|
||||||
|
|
|
@ -8,6 +8,7 @@ static const QString group = QStringLiteral("Units");
|
||||||
qPrefUnits::qPrefUnits(QObject *parent) : QObject(parent)
|
qPrefUnits::qPrefUnits(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
qPrefUnits *qPrefUnits::instance()
|
qPrefUnits *qPrefUnits::instance()
|
||||||
{
|
{
|
||||||
static qPrefUnits *self = new qPrefUnits;
|
static qPrefUnits *self = new qPrefUnits;
|
||||||
|
|
Loading…
Add table
Reference in a new issue