fix: warnings when compiling with Qt 6.10 (#6422)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user