Merge pull request #3237 from akva2/janitoring

fixed: zero initialize to avoid compiler warnings
This commit is contained in:
Arne Morten Kvarving 2022-12-02 10:12:41 +01:00 committed by GitHub
commit 3feac9cb62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}