Everywhere: Forward declare structs as structs

While structs being forward declared as classes is not strictly an
issue, Clang complains as this is not portable code, since some ABIs
treat classes declared as `class` and `struct` differently.

It's easier to fix these than to reason about explicitly disabling
another warning.
This commit is contained in:
Daniel Bertalan 2021-07-05 19:12:37 +02:00 committed by Gunnar Beutner
parent e32692ea68
commit b0208ce433
Notes: sideshowbarker 2024-07-18 10:06:00 +09:00
5 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@
namespace Profiler {
class Profile;
class Process;
struct Process;
class TimelineHeader final : public GUI::Frame {
C_OBJECT(TimelineHeader);

View File

@ -11,7 +11,7 @@
namespace Profiler {
class Process;
struct Process;
class Profile;
class TimelineView;

View File

@ -16,7 +16,7 @@ class BufferStream;
namespace IPC {
class Message;
class MessageBuffer;
struct MessageBuffer;
class Stub {
public:

View File

@ -60,7 +60,7 @@ namespace Web::HTML {
class CanvasRenderingContext2D;
class CloseEvent;
class DOMParser;
class EventHandler;
struct EventHandler;
class HTMLAnchorElement;
class HTMLAreaElement;
class HTMLAudioElement;

View File

@ -212,7 +212,7 @@ private:
return iterate_flush_rects(m_flush_transparent_rects);
}
};
friend class ScreenData;
friend struct ScreenData;
Vector<ScreenData, default_screen_count> m_screen_data;
IntrusiveList<Overlay, RawPtr<Overlay>, &Overlay::m_list_node> m_overlay_list;