diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-01-01 22:20:28 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-01-01 22:20:28 -0800 |
commit | 7e980168326b885dfff4e89e3f88ff044272a596 (patch) | |
tree | 7265c0a2f000e26a97745a860995b16f58afed98 /desktop-widgets | |
parent | c39fbea0eef85982f00cc0f0c3b77e6aaddd260b (diff) | |
download | subsurface-7e980168326b885dfff4e89e3f88ff044272a596.tar.gz |
Facebook integration: whitespace cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/plugins/facebook/facebookconnectwidget.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp index 40d598229..f2a2ccad4 100644 --- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp +++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp @@ -78,18 +78,18 @@ void FacebookManager::tryLogin(const QUrl& loginResponse) int to = result.indexOf("&expires_in"); QString securityToken = result.mid(from, to-from); - auto fb = SettingsObjectWrapper::instance()->facebook; - fb->setAccessToken(securityToken); + auto fb = SettingsObjectWrapper::instance()->facebook; + fb->setAccessToken(securityToken); requestUserId(); emit justLoggedIn(true); } void FacebookManager::logout() { - auto fb = SettingsObjectWrapper::instance()->facebook; - fb->setAccessToken(QString()); - fb->setUserId(QString()); - fb->setAlbumId(QString()); + auto fb = SettingsObjectWrapper::instance()->facebook; + fb->setAccessToken(QString()); + fb->setUserId(QString()); + fb->setAlbumId(QString()); emit justLoggedOut(true); } @@ -105,7 +105,7 @@ void FacebookManager::requestAlbumId() QJsonDocument albumsDoc = QJsonDocument::fromJson(reply->readAll()); QJsonArray albumObj = albumsDoc.object().value("data").toArray(); - auto fb = SettingsObjectWrapper::instance()->facebook; + auto fb = SettingsObjectWrapper::instance()->facebook; foreach(const QJsonValue &v, albumObj){ QJsonObject obj = v.toObject(); @@ -129,7 +129,7 @@ void FacebookManager::requestAlbumId() albumsDoc = QJsonDocument::fromJson(reply->readAll()); QJsonObject album = albumsDoc.object(); if (album.contains("id")) { - fb->setAlbumId(album.value("id").toString()); + fb->setAlbumId(album.value("id").toString()); return; } } |