From b0e25088a291772fad8364372bcff9728512579c Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 7 Apr 2024 12:06:06 -0600 Subject: [PATCH] Initialize all `sf::Glyph` members This silences an MSVC warning about lsbDelta and rsbDelta not being initialized. Whether or not this fixes any bugs, it provides a better user experience if nobody sees those warnings. --- include/SFML/Graphics/Glyph.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SFML/Graphics/Glyph.hpp b/include/SFML/Graphics/Glyph.hpp index 05f78760a..cd6cfb946 100644 --- a/include/SFML/Graphics/Glyph.hpp +++ b/include/SFML/Graphics/Glyph.hpp @@ -46,7 +46,7 @@ public: /// \brief Default constructor /// //////////////////////////////////////////////////////////// - Glyph() : advance(0) {} + Glyph() : advance(0), lsbDelta(0), rsbDelta(0) {} //////////////////////////////////////////////////////////// // Member data