mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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
|
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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue