mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
Add a CircularQueue template class to AK.
This commit is contained in:
parent
b824f15619
commit
c8b7173aa8
Notes:
sideshowbarker
2024-07-19 18:45:03 +09:00
Author: https://github.com/awesomekling
Commit: c8b7173aa8
3 changed files with 96 additions and 2 deletions
|
@ -8,12 +8,13 @@ static StringImpl* s_theEmptyStringImpl = nullptr;
|
|||
|
||||
void StringImpl::initializeGlobals()
|
||||
{
|
||||
s_theEmptyStringImpl = new StringImpl(ConstructTheEmptyStringImpl);;
|
||||
s_theEmptyStringImpl = nullptr;
|
||||
}
|
||||
|
||||
StringImpl& StringImpl::theEmptyStringImpl()
|
||||
{
|
||||
ASSERT(s_theEmptyStringImpl);
|
||||
if (!s_theEmptyStringImpl)
|
||||
s_theEmptyStringImpl = new StringImpl(ConstructTheEmptyStringImpl);;
|
||||
return *s_theEmptyStringImpl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue