From a2e0291172e31256b57cca85bcdaf88c2659bc72 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Mon, 5 Jul 2021 18:15:16 +0200 Subject: [PATCH] WindowServer: Don't use old GNU-style designator Since we use C++20, we can move to the new standardized designated initializer syntax. --- Userland/Services/WindowServer/ScreenLayout.ipp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Services/WindowServer/ScreenLayout.ipp b/Userland/Services/WindowServer/ScreenLayout.ipp index 6478724de4..7428a4ebdb 100644 --- a/Userland/Services/WindowServer/ScreenLayout.ipp +++ b/Userland/Services/WindowServer/ScreenLayout.ipp @@ -241,10 +241,10 @@ bool ScreenLayout::try_auto_add_framebuffer(String const& device_path) if (!collision) { screens.append({ - device : device_path, - location : new_screen_rect.location(), - resolution : new_screen_rect.size(), - scale_factor : 1 + .device = device_path, + .location = new_screen_rect.location(), + .resolution = new_screen_rect.size(), + .scale_factor = 1 }); if (is_valid()) {