Fix many clazy warnings

This commit is contained in:
Tobias Fella
2026-02-26 00:16:34 +01:00
committed by Tobias Fella
parent c08693c508
commit 9cad195704
13 changed files with 60 additions and 50 deletions

View File

@@ -56,7 +56,7 @@ void CustomEmojiModel::fetchEmojis()
const auto e = emoji.startsWith(":"_L1) ? emoji : (u":"_s + emoji + u":"_s);
m_emojis << CustomEmoji{e, data.toObject()["url"_L1].toString(), QRegularExpression(e)};
m_emojis << CustomEmoji{e, data.toObject().value("url"_L1).toString(), QRegularExpression(e)};
}
endResetModel();

View File

@@ -151,7 +151,7 @@ public:
/**
* @brief Return a list of emojis for the given category.
*/
Q_INVOKABLE QVariantList emojis(Category category) const;
Q_INVOKABLE QVariantList emojis(EmojiModel::Category category) const;
/**
* @brief Return a list of emoji tones for the given base emoji.