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) {