Remove Unnecessary Includes in Headers (#4275)

* refactor: remove unnecessary includes in headers

* fix: formatting

* chore: changelog

* fix: scrollbar

* fix: suggestions and old appbase remains

* fix: suggestion

* fix: missing Qt forward declarations

* fix: another qt include

* fix: includes for precompiled-headers=off

* Add missing `<memory>` includes

* Add missing `#pragma once`

* Fix tests

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix
2022-12-31 15:41:01 +01:00
committed by GitHub
parent f04c4c7388
commit 1043f9f803
239 changed files with 871 additions and 544 deletions
+3 -7
View File
@@ -1,6 +1,5 @@
#pragma once
#include "providers/twitch/api/Helix.hpp"
#include "util/RapidjsonHelpers.hpp"
#include <pajlada/serialize.hpp>
@@ -11,6 +10,8 @@
namespace chatterino {
struct HelixBlock;
struct TwitchUser {
QString id;
mutable QString name;
@@ -24,12 +25,7 @@ struct TwitchUser {
this->displayName = other.displayName;
}
void fromHelixBlock(const HelixBlock &ignore)
{
this->id = ignore.userId;
this->name = ignore.userName;
this->displayName = ignore.displayName;
}
void fromHelixBlock(const HelixBlock &ignore);
bool operator<(const TwitchUser &rhs) const
{