mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
AK: Zero-initialize the internal storage of Optional
This commit is contained in:
parent
0763f67043
commit
17846dd063
Notes:
sideshowbarker
2024-07-19 09:07:55 +09:00
Author: https://github.com/awesomekling
Commit: 17846dd063
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ private:
|
||||||
ASSERT(m_has_value);
|
ASSERT(m_has_value);
|
||||||
return *reinterpret_cast<const T*>(&m_storage);
|
return *reinterpret_cast<const T*>(&m_storage);
|
||||||
}
|
}
|
||||||
char m_storage[sizeof(T)];
|
u8 m_storage[sizeof(T)] { 0 };
|
||||||
bool m_has_value { false };
|
bool m_has_value { false };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue