refactor: some Application & style things (#5561)

This commit is contained in:
pajlada
2024-08-25 15:33:07 +02:00
committed by GitHub
parent ac88730563
commit 627c735524
41 changed files with 733 additions and 678 deletions
+2 -2
View File
@@ -299,7 +299,7 @@ std::vector<boost::variant<EmotePtr, QString>> Emojis::parse(
auto result = std::vector<boost::variant<EmotePtr, QString>>();
QString::size_type lastParsedEmojiEndIndex = 0;
for (auto i = 0; i < text.length(); ++i)
for (qsizetype i = 0; i < text.length(); ++i)
{
const QChar character = text.at(i);
@@ -401,7 +401,7 @@ QString Emojis::replaceShortCodes(const QString &text) const
QString ret(text);
auto it = this->findShortCodesRegex_.globalMatch(text);
int32_t offset = 0;
qsizetype offset = 0;
while (it.hasNext())
{