From c11c34f6409a905285ffa7be2101d55fffe8dcac Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 28 Jan 2024 11:30:31 +0100 Subject: [PATCH] :rotating_light: fix warning --- tests/src/unit-udt.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/src/unit-udt.cpp b/tests/src/unit-udt.cpp index 5b002efa2..5a64c7aa8 100644 --- a/tests/src/unit-udt.cpp +++ b/tests/src/unit-udt.cpp @@ -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 m_contacts{}; + std::vector m_contacts{}; // NOLINT(readability-redundant-member-init) contact_book() = default; contact_book(name n, book_id i, std::vector c) : m_book_name(std::move(n)), m_book_id(i), m_contacts(std::move(c)) {} };