Enable -Wconversion
This commit is contained in:
parent
5be8298d0a
commit
b28fa86e6a
23 changed files with 102 additions and 78 deletions
|
|
@ -85,8 +85,9 @@ ReadReceiptsModel::addUsers(
|
|||
auto newReceipts = users.size() - readReceipts_.size();
|
||||
|
||||
if (newReceipts > 0) {
|
||||
beginInsertRows(
|
||||
QModelIndex{}, readReceipts_.size(), readReceipts_.size() + newReceipts - 1);
|
||||
beginInsertRows(QModelIndex{},
|
||||
static_cast<int>(readReceipts_.size()),
|
||||
static_cast<int>(readReceipts_.size() + newReceipts - 1));
|
||||
|
||||
for (const auto &user : users) {
|
||||
QPair<QString, QDateTime> item = {QString::fromStdString(user.second),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue