From 20076f7271e19ecc259014681ba733047bea4d9b Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Fri, 24 Jun 2022 12:49:00 -0400 Subject: Remove unnecessary typedef Idk why I thought that was necessary to avoid: "struct Name" in every place? maybe its a C thing? IDR --- src/MessageBox.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/MessageBox.h') diff --git a/src/MessageBox.h b/src/MessageBox.h index def138c..e1608a7 100644 --- a/src/MessageBox.h +++ b/src/MessageBox.h @@ -30,8 +30,8 @@ #include "SFML/Graphics/RectangleShape.hpp" #include "SFML/Graphics/Text.hpp" #include "SfmlUtils.h" -#include #include +#include const int LARGE_TEXT = 54; const int MEDIUM_TEXT = 36; @@ -42,13 +42,12 @@ struct MessageBox { std::vector msgs; sf::RectangleShape box; - -} typedef MessageBox; +}; struct DisplayText { std::string msg; int textSize; -} typedef DisplayText; +}; inline MessageBox initializeMessageBox(const std::vector &strs, const sf::Font &font, -- cgit v1.2.3-54-g00ecf