mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 17:02:06 +03:00
Regex: add elided braces to fix compilation on older gcc
This commit is contained in:
parent
bf3b50a543
commit
ea85f79384
@ -198,7 +198,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void* ptr = ::operator new (sizeof(Saves) + (count-1) * sizeof(Iterator));
|
void* ptr = ::operator new (sizeof(Saves) + (count-1) * sizeof(Iterator));
|
||||||
Saves* saves = new (ptr) Saves{1, copy ? pos[0] : Iterator{}};
|
Saves* saves = new (ptr) Saves{1, {copy ? pos[0] : Iterator{}}};
|
||||||
for (size_t i = 1; i < count; ++i)
|
for (size_t i = 1; i < count; ++i)
|
||||||
new (&saves->pos[i]) Iterator{copy ? pos[i] : Iterator{}};
|
new (&saves->pos[i]) Iterator{copy ? pos[i] : Iterator{}};
|
||||||
m_saves.push_back(saves);
|
m_saves.push_back(saves);
|
||||||
|
Loading…
Reference in New Issue
Block a user