From 66dd3bcaa2c2dcc2193cbe3968bcf8f41c811c6e Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Sun, 10 Sep 2023 16:49:37 +0200 Subject: [PATCH] fix(server): use anonymous namespace Put static function into anonymous namespace as clang-tidy 16 recommends. --- server/text_input_v3.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/text_input_v3.cpp b/server/text_input_v3.cpp index a70f2607..03f6599c 100644 --- a/server/text_input_v3.cpp +++ b/server/text_input_v3.cpp @@ -95,7 +95,10 @@ uint32_t convert_content_hints(text_input_v3_content_hints hints) return ret; } -static text_input_v3_content_purpose convert_content_purpose(uint32_t purpose) +namespace +{ + +text_input_v3_content_purpose convert_content_purpose(uint32_t purpose) { auto const wlPurpose = static_cast(purpose); @@ -130,6 +133,8 @@ static text_input_v3_content_purpose convert_content_purpose(uint32_t purpose) } } +} + uint32_t convert_content_purpose(text_input_v3_content_purpose purpose) { switch (purpose) {