From 2bd85abc108e0688384f42b0ec83dcd5a622d50d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 22 Dec 2022 12:04:50 +0200 Subject: Code formatting fixes Signed-off-by: Tomi Valkeinen --- kms++/src/videomode.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'kms++') diff --git a/kms++/src/videomode.cpp b/kms++/src/videomode.cpp index 0e5acf6..4be6de7 100644 --- a/kms++/src/videomode.cpp +++ b/kms++/src/videomode.cpp @@ -173,9 +173,10 @@ static const map mode_aspect_map = { { DRM_MODE_FLAG_PIC_AR_256_135, "256:135" }, }; -static string mode_type_str(uint32_t val) { +static string mode_type_str(uint32_t val) +{ vector s; - for (const auto & [k, v] : mode_type_map) { + for (const auto& [k, v] : mode_type_map) { if (val & k) { if (!v.empty()) s.push_back(v); @@ -188,7 +189,8 @@ static string mode_type_str(uint32_t val) { return join(s, "|"); } -static string mode_flag_str(uint32_t val) { +static string mode_flag_str(uint32_t val) +{ vector s; for (const auto& [k, v] : mode_flag_map) { if (val & k) { -- cgit v1.2.3