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>
This commit is contained in:
Berthold Stoeger 2018-01-24 21:23:55 +01:00 committed by Jan Mulder
parent b9ac89574e
commit a07b6b4d97
2 changed files with 2 additions and 9 deletions

View file

@ -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);