mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix a few more warnings
This commit is contained in:
parent
09babc91d2
commit
b55b5a8321
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ EmojiModel::roleNames() const
|
|||
int
|
||||
EmojiModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
return parent == QModelIndex() ? Provider::emoji.size() : 0;
|
||||
return parent == QModelIndex() ? (qsizetype)Provider::emoji.size() : 0;
|
||||
}
|
||||
|
||||
QVariant
|
||||
|
|
|
@ -2849,7 +2849,7 @@ TimelineModel::pinnedMessages() const
|
|||
return {};
|
||||
|
||||
QStringList list;
|
||||
list.reserve(pinned->content.pinned.size());
|
||||
list.reserve((qsizetype)pinned->content.pinned.size());
|
||||
for (const auto &p : pinned->content.pinned)
|
||||
list.push_back(QString::fromStdString(p));
|
||||
|
||||
|
@ -2880,7 +2880,7 @@ TimelineModel::widgetLinks() const
|
|||
theme.clear();
|
||||
user = QUrl::toPercentEncoding(user);
|
||||
|
||||
list.reserve(evs.size());
|
||||
list.reserve((qsizetype)evs.size());
|
||||
for (const auto &p : evs) {
|
||||
auto url = QString::fromStdString(p.content.url);
|
||||
|
||||
|
|
Loading…
Reference in a new issue