Removing TextEditor from strings for now
This commit is contained in:
parent
eae8852832
commit
b7560534c1
7 changed files with 65 additions and 1049 deletions
|
|
@ -175,6 +175,12 @@ namespace tp {
|
|||
if (prevSize > mLoad) resizeBuffer(prevSize);
|
||||
}
|
||||
|
||||
void reserve(ualni aSize) {
|
||||
for (ualni i = 0; i < mLoad; i++) mBuff[i].~tType();
|
||||
mBuff = (tType*) mAllocator.allocate(sizeof(tType) * aSize);
|
||||
mSize = aSize;
|
||||
mLoad = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
void resizeBuffer(ualni newSize) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue