diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2019-04-01 23:17:17 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 12:59:17 +0300 |
commit | 2e59196e6b8d1f5461cddfc119d37c40e0027776 (patch) | |
tree | 560023634fcddd2132cfc86f6d85452d7044fbc6 /core/settings | |
parent | ee0acb0d4045bef68bdb153c76f8506c68d8ea9f (diff) | |
download | subsurface-2e59196e6b8d1f5461cddfc119d37c40e0027776.tar.gz |
use the default constructor for empty QString and QByteArray constants
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'core/settings')
-rw-r--r-- | core/settings/qPrefDisplay.cpp | 14 | ||||
-rw-r--r-- | core/settings/qPrefGeneral.cpp | 2 | ||||
-rw-r--r-- | core/settings/qPrefUpdateManager.cpp | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/core/settings/qPrefDisplay.cpp b/core/settings/qPrefDisplay.cpp index 46d8d8851..50ce84a96 100644 --- a/core/settings/qPrefDisplay.cpp +++ b/core/settings/qPrefDisplay.cpp @@ -12,31 +12,31 @@ QPointF qPrefDisplay::st_tooltip_position; static const QPointF st_tooltip_position_default = QPointF(0,0); QString qPrefDisplay::st_lastDir; -static const QString st_lastDir_default = ""; +static const QString st_lastDir_default; QString qPrefDisplay::st_theme; static const QString st_theme_default = QStringLiteral("Blue"); QString qPrefDisplay::st_userSurvey; -static const QString st_userSurvey_default = ""; +static const QString st_userSurvey_default; QByteArray qPrefDisplay::st_mainSplitter; -static const QByteArray st_mainSplitter_default = ""; +static const QByteArray st_mainSplitter_default; QByteArray qPrefDisplay::st_topSplitter; -static const QByteArray st_topSplitter_default = ""; +static const QByteArray st_topSplitter_default; QByteArray qPrefDisplay::st_bottomSplitter; -static const QByteArray st_bottomSplitter_default = ""; +static const QByteArray st_bottomSplitter_default; bool qPrefDisplay::st_maximized; static bool st_maximized_default = false; QByteArray qPrefDisplay::st_geometry; -static const QByteArray st_geometry_default = 0; +static const QByteArray st_geometry_default; QByteArray qPrefDisplay::st_windowState; -static const QByteArray st_windowState_default = 0; +static const QByteArray st_windowState_default; int qPrefDisplay::st_lastState; static int st_lastState_default = false; diff --git a/core/settings/qPrefGeneral.cpp b/core/settings/qPrefGeneral.cpp index 9254a8c51..c0e8026fe 100644 --- a/core/settings/qPrefGeneral.cpp +++ b/core/settings/qPrefGeneral.cpp @@ -6,7 +6,7 @@ static const QString group = QStringLiteral("GeneralSettings"); QString qPrefGeneral::st_diveshareExport_uid; -static const QString st_diveshareExport_uid_default = ""; +static const QString st_diveshareExport_uid_default; bool qPrefGeneral::st_diveshareExport_private; static const bool st_diveshareExport_private_default = false; diff --git a/core/settings/qPrefUpdateManager.cpp b/core/settings/qPrefUpdateManager.cpp index 518296fea..4b5fb9e45 100644 --- a/core/settings/qPrefUpdateManager.cpp +++ b/core/settings/qPrefUpdateManager.cpp @@ -6,7 +6,7 @@ static const QString group = QStringLiteral("UpdateManager"); QString qPrefUpdateManager::st_uuidString; -static const QString st_uuidString_default = ""; +static const QString st_uuidString_default; qPrefUpdateManager::qPrefUpdateManager(QObject *parent) : QObject(parent) { |