diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-14 22:37:28 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-18 08:55:23 +0100 |
commit | aaa57e0e458435e23047fcb325872f0350171bad (patch) | |
tree | 017b5f0d923ec344fe3136e5eea34986d369e6be /lib/networkaccessmanager.cpp | |
parent | aa2465bb7991876c3b5afb5afda54f43fefd9e0a (diff) | |
download | libquotient-aaa57e0e458435e23047fcb325872f0350171bad.tar.gz libquotient-aaa57e0e458435e23047fcb325872f0350171bad.zip |
AccountRegistry: derive from QVector and clean up
Notably, Quotient::AccountRegistry::instance() is now deprecated
in favour of Quotient::Accounts inline variable.
Diffstat (limited to 'lib/networkaccessmanager.cpp')
-rw-r--r-- | lib/networkaccessmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/networkaccessmanager.cpp b/lib/networkaccessmanager.cpp index 2c0f716b..58c3cc3a 100644 --- a/lib/networkaccessmanager.cpp +++ b/lib/networkaccessmanager.cpp @@ -97,7 +97,7 @@ QNetworkReply* NetworkAccessManager::createRequest( // TODO: Make the best effort with a direct unauthenticated request // to the media server } else { - auto* const connection = AccountRegistry::instance().get(accountId); + auto* const connection = Accounts.get(accountId); if (!connection) { qCWarning(NETWORK) << "Connection" << accountId << "not found"; return new MxcReply(); |