From b234ede61e1cfbc29af1bb22277fd91ae43a1cfb Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Wed, 24 Jan 2024 20:14:48 -0700 Subject: [PATCH] Use `struct` for data type with exclusively public contents --- include/SFML/Graphics/Drawable.hpp | 2 +- include/SFML/Graphics/RenderStates.hpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/SFML/Graphics/Drawable.hpp b/include/SFML/Graphics/Drawable.hpp index c1e931d7e..19116b2cf 100644 --- a/include/SFML/Graphics/Drawable.hpp +++ b/include/SFML/Graphics/Drawable.hpp @@ -33,7 +33,7 @@ namespace sf { class RenderTarget; -class RenderStates; +struct RenderStates; //////////////////////////////////////////////////////////// /// \brief Abstract base class for objects that can be drawn diff --git a/include/SFML/Graphics/RenderStates.hpp b/include/SFML/Graphics/RenderStates.hpp index 775512355..7f58bbeb4 100644 --- a/include/SFML/Graphics/RenderStates.hpp +++ b/include/SFML/Graphics/RenderStates.hpp @@ -42,9 +42,8 @@ class Texture; /// \brief Define the states used for drawing to a RenderTarget /// //////////////////////////////////////////////////////////// -class SFML_GRAPHICS_API RenderStates +struct SFML_GRAPHICS_API RenderStates { -public: //////////////////////////////////////////////////////////// /// \brief Default constructor ///