From 769c7f21c31f72a5399425beb163cf2afcd43a80 Mon Sep 17 00:00:00 2001 From: Sahithi Nukala Date: Tue, 28 Apr 2026 11:23:31 +0200 Subject: [PATCH] fix(com/impl): fix clang-tidy warnings for fields --- .clang-tidy | 2 -- score/mw/com/impl/skeleton_field.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 4e1a0661f..61ff8d4f6 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -86,8 +86,6 @@ Checks: > clang-analyzer-cplusplus.NewDelete, # --- qnx-checks --- bugprone-reserved-identifier, - # --- extra --- - modernize-concat-nested-namespaces, WarningsAsErrors: > clang-analyzer-*, diff --git a/score/mw/com/impl/skeleton_field.h b/score/mw/com/impl/skeleton_field.h index 228ab650d..13635da3c 100644 --- a/score/mw/com/impl/skeleton_field.h +++ b/score/mw/com/impl/skeleton_field.h @@ -125,7 +125,7 @@ class SkeletonField : public SkeletonFieldBase static_assert(std::is_invocable_v, "RegisterSetHandler: handler must be callable as void(FieldType& value). " "The argument initially holds the proxy-requested value and may be modified in-place."); - set_handler_ = std::move(handler); + set_handler_ = std::forward(handler); auto wrapped_callback = [this](FieldType& new_value) -> FieldType { // Allow user to validate/modify the value in-place