Skip to content

Commit

Permalink
Fix clang-tidy comments in unit-udt_macro
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeronSix committed Oct 5, 2023
1 parent 385f9d8 commit ba7f94d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/unit-udt_macro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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_}
{}
};

Expand Down Expand Up @@ -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<T> two_persons
std::vector<T> const two_persons
{
{"Erik", 1},
{"Kyle", 2}
Expand Down

0 comments on commit ba7f94d

Please sign in to comment.