[EGD-6946] Fix build for GCC11

Fix build issues identified when building on Fedora 34 using GCC11.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
This commit is contained in:
Alistair Francis
2021-06-16 18:14:04 +10:00
committed by Alek Rudnik
parent 81c10ffbf5
commit 92e92d3ef2
23 changed files with 56 additions and 52 deletions

View File

@@ -23,7 +23,7 @@ ThreadRecordInterface::ThreadRecordInterface(SmsDB *smsDb, ContactsDB *contactsD
bool ThreadRecordInterface::Add(const ThreadRecord &rec)
{
auto ret = smsDB->threads.add(ThreadsTableRow{{.ID = rec.ID},
auto ret = smsDB->threads.add(ThreadsTableRow{Record(rec.ID),
.date = rec.date,
.msgCount = rec.msgCount,
.unreadMsgCount = rec.unreadMsgCount,
@@ -48,7 +48,7 @@ bool ThreadRecordInterface::RemoveByID(uint32_t id)
bool ThreadRecordInterface::Update(const ThreadRecord &rec)
{
return smsDB->threads.update(ThreadsTableRow{{.ID = rec.ID},
return smsDB->threads.update(ThreadsTableRow{Record(rec.ID),
.date = rec.date,
.msgCount = rec.msgCount,
.unreadMsgCount = rec.unreadMsgCount,