🚨 fix warning

This commit is contained in:
Niels Lohmann 2024-01-28 11:30:31 +01:00
parent 30dc5182c3
commit c11c34f640
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -52,9 +52,9 @@ struct address
struct person
{
age m_age{};
name m_name{};
country m_country{};
age m_age{}; // NOLINT(readability-redundant-member-init)
name m_name{}; // NOLINT(readability-redundant-member-init)
country m_country{}; // NOLINT(readability-redundant-member-init)
person() = default;
person(const age& a, name n, const country& c) : m_age(a), m_name(std::move(n)), m_country(c) {}
};
@ -71,9 +71,9 @@ enum class book_id : std::uint64_t;
struct contact_book
{
name m_book_name{};
name m_book_name{}; // NOLINT(readability-redundant-member-init)
book_id m_book_id{};
std::vector<contact> m_contacts{};
std::vector<contact> m_contacts{}; // NOLINT(readability-redundant-member-init)
contact_book() = default;
contact_book(name n, book_id i, std::vector<contact> c) : m_book_name(std::move(n)), m_book_id(i), m_contacts(std::move(c)) {}
};