From 5014143be63294a255cee39eb0a424203fceabb7 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 13 Oct 2024 14:40:30 -0600 Subject: [PATCH] Use SFML style conventions --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index cb00d46f..f41c87f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,12 +2,12 @@ int main() { - auto window = sf::RenderWindow{ { 1920u, 1080u }, "CMake SFML Project" }; + auto window = sf::RenderWindow({1920u, 1080u}, "CMake SFML Project"); window.setFramerateLimit(144); while (window.isOpen()) { - for (auto event = sf::Event{}; window.pollEvent(event);) + for (auto event = sf::Event(); window.pollEvent(event);) { if (event.type == sf::Event::Closed) {