From 2222bb226f43e9419c4a231c9f95da8466de4c0a Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 4 Mar 2018 15:00:32 +0900 Subject: QCoreApplication::processEvents() is static, doesn't need instance() Thanks to clang-tidy for spotting that. --- connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.cpp b/connection.cpp index ad893168..f76d9fbe 100644 --- a/connection.cpp +++ b/connection.cpp @@ -274,7 +274,7 @@ void Connection::onSyncSuccess(SyncData &&data) { } if ( auto* r = provideRoom(roomData.roomId, roomData.joinState) ) r->updateData(std::move(roomData)); - QCoreApplication::instance()->processEvents(); + QCoreApplication::processEvents(); } } @@ -672,7 +672,7 @@ void Connection::saveState(const QUrl &toFile) const inviteRooms.insert(i->id(), i->toJson()); else rooms.insert(i->id(), i->toJson()); - QCoreApplication::instance()->processEvents(); + QCoreApplication::processEvents(); } if (!rooms.isEmpty()) -- cgit v1.2.3