From 71615c82683899d947226d4f03089224809d4b72 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 22 Aug 2023 23:52:30 -0600 Subject: [PATCH] Use `struct` for user defined type with no private section --- include/SFML/Window/Event.hpp | 3 +-- include/SFML/Window/Window.hpp | 2 +- include/SFML/Window/WindowBase.hpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/SFML/Window/Event.hpp b/include/SFML/Window/Event.hpp index 587ae22a..a88946ea 100644 --- a/include/SFML/Window/Event.hpp +++ b/include/SFML/Window/Event.hpp @@ -41,9 +41,8 @@ namespace sf /// \brief Defines a system event and its parameters /// //////////////////////////////////////////////////////////// -class Event +struct Event { -public: //////////////////////////////////////////////////////////// /// \brief Size events parameters (Resized) /// diff --git a/include/SFML/Window/Window.hpp b/include/SFML/Window/Window.hpp index 99a4d943..9dc73dbf 100644 --- a/include/SFML/Window/Window.hpp +++ b/include/SFML/Window/Window.hpp @@ -44,7 +44,7 @@ namespace priv class GlContext; } -class Event; +struct Event; //////////////////////////////////////////////////////////// /// \brief Window that serves as a target for OpenGL rendering diff --git a/include/SFML/Window/WindowBase.hpp b/include/SFML/Window/WindowBase.hpp index 47c4ada0..792bfcb2 100644 --- a/include/SFML/Window/WindowBase.hpp +++ b/include/SFML/Window/WindowBase.hpp @@ -50,7 +50,7 @@ namespace priv class WindowImpl; } -class Event; +struct Event; //////////////////////////////////////////////////////////// /// \brief Window that serves as a base for other windows