summaryrefslogtreecommitdiffstats
path: root/core/settings/qPref.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-24 22:28:26 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-27 07:16:01 -0700
commit4461b479655a40d46b5f900ca227d30310812891 (patch)
treede6557631f2346bd772b394a0c89c4b74574c5e0 /core/settings/qPref.h
parentd9588ec5df78f8ad20b35e1f75b0e42e9bbb5164 (diff)
downloadsubsurface-4461b479655a40d46b5f900ca227d30310812891.tar.gz
qPref: reduce recompiles with every commit
Including ssrf-version.h in an include file that a lot of files depend on caused a ton of unnecessary recompiles with every commit. This should reduce that problem. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPref.h')
-rw-r--r--core/settings/qPref.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/settings/qPref.h b/core/settings/qPref.h
index e59a778e5..2c95a1500 100644
--- a/core/settings/qPref.h
+++ b/core/settings/qPref.h
@@ -2,7 +2,6 @@
#ifndef QPREF_H
#define QPREF_H
#include "core/pref.h"
-#include "ssrf-version.h"
#include <QObject>
#include <QQmlEngine>
@@ -24,8 +23,8 @@ public:
void registerQML(QQmlEngine *engine);
public:
- static const QString canonical_version() { return QString(CANONICAL_VERSION_STRING); }
- static const QString mobile_version() { return QString(MOBILE_VERSION_STRING); }
+ static const QString canonical_version();
+ static const QString mobile_version();
private:
static void loadSync(bool doSync);