Fix issues reported by clang-tidy and more aggressive gcc flags for ci jobs
This commit is contained in:
parent
1b11773cd6
commit
a36fb85750
@ -18,7 +18,7 @@ class json_metadata
|
|||||||
return m_metadata;
|
return m_metadata;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
metadata_t m_metadata;
|
metadata_t m_metadata = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
|||||||
@ -2333,11 +2333,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
// check that passed value is valid
|
// check that passed value is valid
|
||||||
other.assert_invariant();
|
other.assert_invariant();
|
||||||
|
|
||||||
json_metadata_t::operator=(std::move(other));
|
|
||||||
|
|
||||||
using std::swap;
|
using std::swap;
|
||||||
swap(m_type, other.m_type);
|
swap(m_type, other.m_type);
|
||||||
swap(m_value, other.m_value);
|
swap(m_value, other.m_value);
|
||||||
|
json_metadata_t::operator=(std::move(other));
|
||||||
|
|
||||||
set_parents();
|
set_parents();
|
||||||
assert_invariant();
|
assert_invariant();
|
||||||
|
|||||||
@ -12377,7 +12377,7 @@ class json_metadata
|
|||||||
return m_metadata;
|
return m_metadata;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
metadata_t m_metadata;
|
metadata_t m_metadata = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
@ -19772,11 +19772,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
|||||||
// check that passed value is valid
|
// check that passed value is valid
|
||||||
other.assert_invariant();
|
other.assert_invariant();
|
||||||
|
|
||||||
json_metadata_t::operator=(std::move(other));
|
|
||||||
|
|
||||||
using std::swap;
|
using std::swap;
|
||||||
swap(m_type, other.m_type);
|
swap(m_type, other.m_type);
|
||||||
swap(m_value, other.m_value);
|
swap(m_value, other.m_value);
|
||||||
|
json_metadata_t::operator=(std::move(other));
|
||||||
|
|
||||||
set_parents();
|
set_parents();
|
||||||
assert_invariant();
|
assert_invariant();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user