🚨 fix warnings
This commit is contained in:
parent
81c8ded93c
commit
10fc3520d7
@ -68,8 +68,8 @@ struct address
|
|||||||
|
|
||||||
struct person
|
struct person
|
||||||
{
|
{
|
||||||
age m_age;
|
age m_age{};
|
||||||
name m_name;
|
name m_name{};
|
||||||
country m_country{};
|
country m_country{};
|
||||||
person() = default;
|
person() = default;
|
||||||
person(const age& a, name n, const country& c) : m_age(a), m_name(std::move(n)), m_country(c) {}
|
person(const age& a, name n, const country& c) : m_age(a), m_name(std::move(n)), m_country(c) {}
|
||||||
@ -77,15 +77,15 @@ struct person
|
|||||||
|
|
||||||
struct contact
|
struct contact
|
||||||
{
|
{
|
||||||
person m_person;
|
person m_person{};
|
||||||
address m_address;
|
address m_address{};
|
||||||
contact() = default;
|
contact() = default;
|
||||||
contact(person p, address a) : m_person(std::move(p)), m_address(std::move(a)) {}
|
contact(person p, address a) : m_person(std::move(p)), m_address(std::move(a)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct contact_book
|
struct contact_book
|
||||||
{
|
{
|
||||||
name m_book_name;
|
name m_book_name{};
|
||||||
std::vector<contact> m_contacts;
|
std::vector<contact> m_contacts;
|
||||||
contact_book() = default;
|
contact_book() = default;
|
||||||
contact_book(name n, std::vector<contact> c) : m_book_name(std::move(n)), m_contacts(std::move(c)) {}
|
contact_book(name n, std::vector<contact> c) : m_book_name(std::move(n)), m_contacts(std::move(c)) {}
|
||||||
@ -347,8 +347,8 @@ namespace udt
|
|||||||
struct legacy_type
|
struct legacy_type
|
||||||
{
|
{
|
||||||
std::string number;
|
std::string number;
|
||||||
legacy_type() = default;
|
legacy_type() : number() {}
|
||||||
legacy_type(std::string n) : number(std::move(n)) {}
|
legacy_type(std::string n) : number(std::move(n)) {}
|
||||||
};
|
};
|
||||||
} // namespace udt
|
} // namespace udt
|
||||||
|
|
||||||
@ -620,7 +620,7 @@ struct small_pod
|
|||||||
struct non_pod
|
struct non_pod
|
||||||
{
|
{
|
||||||
std::string s;
|
std::string s;
|
||||||
non_pod() = default;
|
non_pod() : s() {}
|
||||||
non_pod(std::string S) : s(std::move(S)) {}
|
non_pod(std::string S) : s(std::move(S)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user