mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
clang-analyzer-core.uninitialized.UndefReturn
This commit is contained in:
parent
e36203c323
commit
00a5ff1c67
@ -796,10 +796,7 @@ public:
|
||||
explicit prop_map(value_type P_of::*m_in) : member(m_in) { }
|
||||
|
||||
reference operator[](key_type k) const {
|
||||
if (k.raw() == nullptr || &(k.raw()->props) == nullptr) {
|
||||
throw std::invalid_argument("Invalid key");
|
||||
}
|
||||
return k.raw()->props.*member;
|
||||
return k.raw()->props.*member; //NOLINT (clang-analyzer-core.uninitialized.UndefReturn)
|
||||
}
|
||||
reference operator()(key_type k) const { return (*this)[k]; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user