From ba7f94d884dfbceb8a90ad2f8e47350aa65271a3 Mon Sep 17 00:00:00 2001 From: Vyacheslav Zhdanovskiy Date: Tue, 3 Oct 2023 16:45:25 +0300 Subject: [PATCH] Fix clang-tidy comments in unit-udt_macro --- tests/src/unit-udt_macro.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/unit-udt_macro.cpp b/tests/src/unit-udt_macro.cpp index eb8808c7a..c54ecac32 100644 --- a/tests/src/unit-udt_macro.cpp +++ b/tests/src/unit-udt_macro.cpp @@ -292,7 +292,7 @@ class person_without_default_constructor_1 person_without_default_constructor_1(std::string name_, int age_) : name{std::move(name_)} - , age{std::move(age_)} + , age{age_} {} NLOHMANN_DEFINE_TYPE_INTRUSIVE_ONLY_SERIALIZE(person_without_default_constructor_1, name, age) @@ -311,7 +311,7 @@ class person_without_default_constructor_2 person_without_default_constructor_2(std::string name_, int age_) : name{std::move(name_)} - , age{std::move(age_)} + , age{age_} {} }; @@ -463,7 +463,7 @@ TEST_CASE_TEMPLATE("Serialization of non-default-constructible classes via NLOHM CHECK(json(person).dump() == "{\"age\":1,\"name\":\"Erik\"}"); // serialization of a container with objects - std::vector two_persons + std::vector const two_persons { {"Erik", 1}, {"Kyle", 2}