fix: warnings when compiling with Qt 6.10 (#6422)

This commit is contained in:
nerix
2025-10-05 15:18:54 +02:00
committed by GitHub
parent 2c44a2efd2
commit 38a3bf2ef8
17 changed files with 105 additions and 24 deletions
+6 -1
View File
@@ -172,7 +172,12 @@ void Emojis::loadEmojis()
{
// Current version: https://github.com/iamcal/emoji-data/blob/v15.1.1/emoji.json (Emoji version 15.1 (2023))
QFile file(":/emoji.json");
file.open(QFile::ReadOnly);
if (!file.open(QFile::ReadOnly))
{
assert(false && "Resources not available");
qCWarning(chatterinoEmoji) << "Resources not available";
return;
}
QTextStream s1(&file);
QString data = s1.readAll();
rapidjson::Document root;