Skip to content

Commit

Permalink
fix(server): use anonymous namespace
Browse files Browse the repository at this point in the history
Put static function into anonymous namespace as clang-tidy 16 recommends.
  • Loading branch information
romangg committed Sep 11, 2023
1 parent 3d1c8f5 commit 66dd3bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/text_input_v3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<zwp_text_input_v3_content_purpose>(purpose);

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 66dd3bc

Please sign in to comment.