Skip to content

Commit 969c5cd

Browse files
committed
Use SFML style conventions
1 parent c1f0525 commit 969c5cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
int main()
44
{
5-
auto window = sf::RenderWindow{ { 1920u, 1080u }, "CMake SFML Project" };
5+
auto window = sf::RenderWindow({1920u, 1080u}, "CMake SFML Project");
66
window.setFramerateLimit(144);
77

88
while (window.isOpen())
99
{
10-
for (auto event = sf::Event{}; window.pollEvent(event);)
10+
for (auto event = sf::Event(); window.pollEvent(event);)
1111
{
1212
if (event.type == sf::Event::Closed)
1313
{

0 commit comments

Comments
 (0)