Fix many clazy warnings
This commit is contained in:
committed by
Tobias Fella
parent
c08693c508
commit
9cad195704
@@ -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();
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user