mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-09 04:37:52 +03:00
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:
parent
e32692ea68
commit
b0208ce433
Notes:
sideshowbarker
2024-07-18 10:06:00 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/b0208ce4330 Pull-request: https://github.com/SerenityOS/serenity/pull/8470 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/gunnarbeutner ✅
@ -11,7 +11,7 @@
|
||||
namespace Profiler {
|
||||
|
||||
class Profile;
|
||||
class Process;
|
||||
struct Process;
|
||||
|
||||
class TimelineHeader final : public GUI::Frame {
|
||||
C_OBJECT(TimelineHeader);
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
namespace Profiler {
|
||||
|
||||
class Process;
|
||||
struct Process;
|
||||
class Profile;
|
||||
class TimelineView;
|
||||
|
||||
|
@ -16,7 +16,7 @@ class BufferStream;
|
||||
namespace IPC {
|
||||
|
||||
class Message;
|
||||
class MessageBuffer;
|
||||
struct MessageBuffer;
|
||||
|
||||
class Stub {
|
||||
public:
|
||||
|
@ -60,7 +60,7 @@ namespace Web::HTML {
|
||||
class CanvasRenderingContext2D;
|
||||
class CloseEvent;
|
||||
class DOMParser;
|
||||
class EventHandler;
|
||||
struct EventHandler;
|
||||
class HTMLAnchorElement;
|
||||
class HTMLAreaElement;
|
||||
class HTMLAudioElement;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user