Enable -Wconversion
This commit is contained in:
parent
5be8298d0a
commit
b28fa86e6a
23 changed files with 102 additions and 78 deletions
|
|
@ -3777,9 +3777,9 @@ Cache::spaces()
|
|||
std::string_view room_data;
|
||||
if (roomsDb_.get(txn, space_id, room_data)) {
|
||||
RoomInfo tmp = nlohmann::json::parse(std::move(room_data)).get<RoomInfo>();
|
||||
ret.insert(QString::fromUtf8(space_id.data(), (qsizetype)space_id.size()), tmp);
|
||||
ret.insert(QString::fromUtf8(space_id.data(), (int)space_id.size()), tmp);
|
||||
} else {
|
||||
ret.insert(QString::fromUtf8(space_id.data(), (qsizetype)space_id.size()),
|
||||
ret.insert(QString::fromUtf8(space_id.data(), (int)space_id.size()),
|
||||
std::nullopt);
|
||||
}
|
||||
}
|
||||
|
|
@ -4938,7 +4938,7 @@ to_json(nlohmann::json &obj, const GroupSessionData &msg)
|
|||
void
|
||||
from_json(const nlohmann::json &obj, GroupSessionData &msg)
|
||||
{
|
||||
msg.message_index = obj.at("message_index").get<uint64_t>();
|
||||
msg.message_index = obj.at("message_index").get<uint32_t>();
|
||||
msg.timestamp = obj.value("ts", 0ULL);
|
||||
msg.trusted = obj.value("trust", true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue