From 7e980168326b885dfff4e89e3f88ff044272a596 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 1 Jan 2017 22:20:28 -0800 Subject: [PATCH] Facebook integration: whitespace cleanup Signed-off-by: Dirk Hohndel --- .../plugins/facebook/facebookconnectwidget.cpp | 16 ++++++++-------- 1 file 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; } }