Massage includes some more (#4294)
* Add `<functional>` include to QStringHash.hpp This ensures the base `std::hash` template is declared before this specialization * Add missing includes to `src/providers/twitch/TwitchAccountManager.hpp` * Move explicit HelixChatters constructor to the source file * Remove unused includes & add used includes to NicknamesModel.hpp * NicknamesModel.hpp: Remove `virtual` when `override` is used * Add missing QStringHash include to TwitchEmotes.cpp * Add missing includes to various files * Print Qt version in cmake step Technically unrelated, but I'm sneaking it in * Add changelog entry
This commit is contained in:
@@ -357,20 +357,7 @@ struct HelixChatters {
|
||||
|
||||
HelixChatters() = default;
|
||||
|
||||
explicit HelixChatters(const QJsonObject &jsonObject)
|
||||
: total(jsonObject.value("total").toInt())
|
||||
, cursor(jsonObject.value("pagination")
|
||||
.toObject()
|
||||
.value("cursor")
|
||||
.toString())
|
||||
{
|
||||
const auto &data = jsonObject.value("data").toArray();
|
||||
for (const auto &chatter : data)
|
||||
{
|
||||
auto userLogin = chatter.toObject().value("user_login").toString();
|
||||
this->chatters.insert(userLogin);
|
||||
}
|
||||
}
|
||||
explicit HelixChatters(const QJsonObject &jsonObject);
|
||||
};
|
||||
|
||||
using HelixModerator = HelixVip;
|
||||
|
||||
Reference in New Issue
Block a user