diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-10-18 02:29:26 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-11-12 22:10:48 -0800 |
commit | 81583bbfa365a0c260cc67f97941ac0e623e825a (patch) | |
tree | 30f818f96a5926058eab1d706c53dd09050914da /MainApp.cpp | |
parent | 0240d99ec8fea238a9193207fe430111ae479f43 (diff) |
poi-yelp: fix up formating in source
Fix the mixing of tabs and 4 space indents in all source files.
Bug-AGL: SPEC-2880
Change-Id: Ib02b5b9d2c65f252ba9b981be6fed23e8c111e66
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'MainApp.cpp')
-rw-r--r-- | MainApp.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/MainApp.cpp b/MainApp.cpp index 31e4420..59e049c 100644 --- a/MainApp.cpp +++ b/MainApp.cpp @@ -633,36 +633,36 @@ void MainApp::networkReplySearch(QNetworkReply* reply) /* memorize the text which gave this result: */ currentSearchedText = lineEdit.text(); - if (reply->error() == QNetworkReply::NoError) - { - // we only handle this callback if it matches the last search request: - if (reply != pSearchReply) - { - TRACE_INFO("this reply is already too late (or about a different network request)"); - mutex.unlock(); - return; - } - - buflen = reply->read(buf, BIG_BUFFER_SIZE-1); - buf[buflen] = '\0'; - - if (buflen == 0) - { - mutex.unlock(); - return; - } - - - - currentIndex = 0; - Businesses.clear(); - ParseJsonBusinessList(buf, Businesses); - DisplayResultList(true); - FillResultList(Businesses); + if (reply->error() == QNetworkReply::NoError) + { + // we only handle this callback if it matches the last search request: + if (reply != pSearchReply) + { + TRACE_INFO("this reply is already too late (or about a different network request)"); + mutex.unlock(); + return; + } + + buflen = reply->read(buf, BIG_BUFFER_SIZE-1); + buf[buflen] = '\0'; + + if (buflen == 0) + { + mutex.unlock(); + return; + } + + + + currentIndex = 0; + Businesses.clear(); + ParseJsonBusinessList(buf, Businesses); + DisplayResultList(true); + FillResultList(Businesses); } else { - fprintf(stderr,"POI: reply error network please check to poikey and system time (adjusted?)\n"); + fprintf(stderr,"POI: reply error network please check to poikey and system time (adjusted?)\n"); } mutex.unlock(); @@ -864,8 +864,8 @@ int MainApp::AuthenticatePOI(const QString & CredentialsFile) /* Then, send a HTTP request to get the token and wait for answer (synchronously): */ - token = AppSecret; - return 0; + token = AppSecret; + return 0; } int MainApp::StartMonitoringUserInput() |