Fix a few more warnings

This commit is contained in:
Nicolas Werner 2022-10-01 23:57:32 +02:00
parent 09babc91d2
commit b55b5a8321
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ EmojiModel::roleNames() const
int int
EmojiModel::rowCount(const QModelIndex &parent) const EmojiModel::rowCount(const QModelIndex &parent) const
{ {
return parent == QModelIndex() ? Provider::emoji.size() : 0; return parent == QModelIndex() ? (qsizetype)Provider::emoji.size() : 0;
} }
QVariant QVariant

View file

@ -2849,7 +2849,7 @@ TimelineModel::pinnedMessages() const
return {}; return {};
QStringList list; QStringList list;
list.reserve(pinned->content.pinned.size()); list.reserve((qsizetype)pinned->content.pinned.size());
for (const auto &p : pinned->content.pinned) for (const auto &p : pinned->content.pinned)
list.push_back(QString::fromStdString(p)); list.push_back(QString::fromStdString(p));
@ -2880,7 +2880,7 @@ TimelineModel::widgetLinks() const
theme.clear(); theme.clear();
user = QUrl::toPercentEncoding(user); user = QUrl::toPercentEncoding(user);
list.reserve(evs.size()); list.reserve((qsizetype)evs.size());
for (const auto &p : evs) { for (const auto &p : evs) {
auto url = QString::fromStdString(p.content.url); auto url = QString::fromStdString(p.content.url);