diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-04 15:00:32 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-04 15:00:32 +0900 |
commit | 2222bb226f43e9419c4a231c9f95da8466de4c0a (patch) | |
tree | 678a76d51c4744a6b4939e3dc67b879e6be80735 | |
parent | 9faea79681597a50e21abb8a530ef36e87391f31 (diff) | |
download | libquotient-2222bb226f43e9419c4a231c9f95da8466de4c0a.tar.gz libquotient-2222bb226f43e9419c4a231c9f95da8466de4c0a.zip |
QCoreApplication::processEvents() is static, doesn't need instance()
Thanks to clang-tidy for spotting that.
-rw-r--r-- | connection.cpp | 4 |
1 files 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()) |