diff options
author | jan Iversen <jani@apache.org> | 2018-08-15 13:26:09 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-25 11:49:47 -0700 |
commit | 69f21d9aedcea8713cf5af6463ebacba5832162e (patch) | |
tree | 7a345586bd1a4caa311e99679b766681e03aeb41 /core/settings/qPrefFacebook.cpp | |
parent | c3a54826a2ddb17ac00ec4fdbbd18eea8a0ecbe1 (diff) | |
download | subsurface-69f21d9aedcea8713cf5af6463ebacba5832162e.tar.gz |
core: make methods in qPrefPrivate static
Small cleanup, using static methods is simpler and faster
Added propSetValue and propValue instead of exposing setting
variable.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings/qPrefFacebook.cpp')
-rw-r--r-- | core/settings/qPrefFacebook.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/settings/qPrefFacebook.cpp b/core/settings/qPrefFacebook.cpp index 0c37b2c6d..8728313ab 100644 --- a/core/settings/qPrefFacebook.cpp +++ b/core/settings/qPrefFacebook.cpp @@ -21,7 +21,7 @@ void qPrefFacebook::loadSync(bool doSync) void qPrefFacebook::set_access_token(const QString &value) { if (value != prefs.facebook.access_token) { - qPrefPrivate::instance()->copy_txt(&prefs.facebook.access_token, value); + qPrefPrivate::copy_txt(&prefs.facebook.access_token, value); emit instance()->access_token_changed(value); } } @@ -29,7 +29,7 @@ void qPrefFacebook::set_access_token(const QString &value) void qPrefFacebook::set_album_id(const QString &value) { if (value != prefs.facebook.album_id) { - qPrefPrivate::instance()->copy_txt(&prefs.facebook.album_id, value); + qPrefPrivate::copy_txt(&prefs.facebook.album_id, value); emit instance()->album_id_changed(value); } } @@ -37,7 +37,7 @@ void qPrefFacebook::set_album_id(const QString &value) void qPrefFacebook::set_user_id(const QString &value) { if (value != prefs.facebook.user_id) { - qPrefPrivate::instance()->copy_txt(&prefs.facebook.user_id, value); + qPrefPrivate::copy_txt(&prefs.facebook.user_id, value); emit instance()->access_token_changed(value); } } |