diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-01-24 21:23:55 +0100 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-01-25 08:39:20 +0100 |
commit | a07b6b4d9714e32cb28b903bc89889853e30c410 (patch) | |
tree | 29fcb1cb417afdf6429d1dc0c52bb918772de338 /mobile-widgets/qmlmanager.h | |
parent | b9ac89574ebd095f1c4760d223ccfb4dd9fba479 (diff) | |
download | subsurface-a07b6b4d9714e32cb28b903bc89889853e30c410.tar.gz |
Remove function-call indirection in qmlmanager.cpp
QMLManager::tryRetrieveDataFromBackend() was a one-liner calling
void QMLManager::checkCredentialsAndExecute() with a pointer-to-member.
The latter was never called with a different pointer, therefore
fold the latter into the former and remove the indirection.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 5bd597887..6917a6818 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -126,7 +126,6 @@ public: bool btEnabled() const; void setBtEnabled(bool value); - typedef void (QMLManager::*execute_function_type)(); DiveListSortModel *dlSortModel; QStringList suitInit() const; @@ -146,7 +145,6 @@ public slots: void applicationStateChanged(Qt::ApplicationState state); void savePreferences(); void saveCloudCredentials(); - void checkCredentialsAndExecute(execute_function_type execute); void tryRetrieveDataFromBackend(); void handleError(QNetworkReply::NetworkError nError); void handleSslErrors(const QList<QSslError> &errors); |