From 8d04236fbde0e7ab7c57d3bd624c7ce34a944340 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Mon, 19 Aug 2019 18:54:17 -0400 Subject: [PATCH] Fix build issues w/ clang --- src/Cache.cpp | 2 -- src/ChatPage.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Cache.cpp b/src/Cache.cpp index d264b541..eee75f25 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1993,8 +1993,6 @@ Cache::getTimelineMentionsForRoom(lmdb::txn &txn, const std::string &room_id) void Cache::saveTimelineMentions(const mtx::responses::Notifications &res) { - json notif = res; - QMap> notifsByRoom; // Sort into room-specific 'buckets' diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 854d57d7..2ed64b6b 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -526,7 +526,7 @@ ChatPage::ChatPage(QSharedPointer userSettings, QWidget *parent) connect(this, &ChatPage::highlightedNotifsRetrieved, this, - [this](const mtx::responses::Notifications ¬if) { + [](const mtx::responses::Notifications ¬if) { try { cache::client()->saveTimelineMentions(notif); } catch (const lmdb::error &e) {