mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
QList::{size,length}() changed fron inline int to qsizetype
References: - https://doc.qt.io/qt-6/qlist.html#length - https://www.qt.io/blog/qlist-changes-in-qt-6
This commit is contained in:
parent
19a2b2eb61
commit
32f81a668f
|
@ -888,7 +888,7 @@ QString CommandController::execCommand(const QString &textNoEmoji,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto maxSpaces = std::min(this->maxSpaces_, words.length() - 1);
|
auto maxSpaces = std::min(this->maxSpaces_, int(words.length()) - 1);
|
||||||
for (int i = 0; i < maxSpaces; ++i)
|
for (int i = 0; i < maxSpaces; ++i)
|
||||||
{
|
{
|
||||||
commandName += ' ' + words[i + 1];
|
commandName += ' ' + words[i + 1];
|
||||||
|
|
|
@ -37,7 +37,8 @@ std::vector<QStringList> getEmoteSetBatches(QStringList emoteSetKeys)
|
||||||
{
|
{
|
||||||
QStringList batch;
|
QStringList batch;
|
||||||
|
|
||||||
int last = std::min(batchSize, emoteSetKeys.size() - batchSize * i);
|
int last =
|
||||||
|
std::min(batchSize, int(emoteSetKeys.size()) - batchSize * i);
|
||||||
for (int j = 0; j < last; j++)
|
for (int j = 0; j < last; j++)
|
||||||
{
|
{
|
||||||
batch.push_back(emoteSetKeys.at(j + (batchSize * i)));
|
batch.push_back(emoteSetKeys.at(j + (batchSize * i)));
|
||||||
|
|
Loading…
Reference in a new issue