Merge pull request #3237 from akva2/janitoring
fixed: zero initialize to avoid compiler warnings
This commit is contained in:
commit
3feac9cb62
@ -283,7 +283,7 @@ protected:
|
||||
bool has = false;
|
||||
(*this)(has);
|
||||
if (has) {
|
||||
T res;
|
||||
T res{};
|
||||
(*this)(res);
|
||||
const_cast<std::optional<T>&>(data) = res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user