Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2017-09-20 11:14:48 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2017-10-05 23:01:35 +0300
commit7aca2352be51701b0f1bdcc3b20e2215af14cb93 (patch)
tree4b715524859fffe94d4004da8f4c2341edc9eb3a /src/gui/accountmanager.cpp
parent3143b32aa5494f1a9a391216a5acf6b39cacf29b (diff)
Use the Qt5 connection syntax (automated with clazy)
This is motivated by the fact that QMetaObject::noralizeSignature takes 7.35% CPU of the LargeSyncBench. (Mostly from ABstractNetworkJob::setupConnections and PropagateUploadFileV1::startNextChunk). It could be fixed by using normalized signature in the connection statement, but i tought it was a good oportunity to modernize the code. This commit only contains calls that were automatically converted with clazy.
Diffstat (limited to 'src/gui/accountmanager.cpp')
-rw-r--r--src/gui/accountmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp
index a62e1f30f..38a0ff185 100644
--- a/src/gui/accountmanager.cpp
+++ b/src/gui/accountmanager.cpp
@@ -319,8 +319,8 @@ AccountPtr AccountManager::createAccount()
{
AccountPtr acc = Account::create();
acc->setSslErrorHandler(new SslDialogErrorHandler);
- connect(acc.data(), SIGNAL(proxyAuthenticationRequired(QNetworkProxy, QAuthenticator *)),
- ProxyAuthHandler::instance(), SLOT(handleProxyAuthenticationRequired(QNetworkProxy, QAuthenticator *)));
+ connect(acc.data(), &Account::proxyAuthenticationRequired,
+ ProxyAuthHandler::instance(), &ProxyAuthHandler::handleProxyAuthenticationRequired);
return acc;
}
@@ -359,8 +359,8 @@ QString AccountManager::generateFreeAccountId() const
void AccountManager::addAccountState(AccountState *accountState)
{
QObject::connect(accountState->account().data(),
- SIGNAL(wantsAccountSaved(Account *)),
- SLOT(saveAccount(Account *)));
+ &Account::wantsAccountSaved,
+ this, &AccountManager::saveAccount);
AccountStatePtr ptr(accountState);
_accounts << ptr;