MemPool: Fix typo in copy and assignment methods
https://github.com/cacay/MemoryPool/pull/8
This commit is contained in:
parent
3e5c856d86
commit
514af95f6c
|
@ -64,7 +64,7 @@ noexcept
|
|||
memoryPool.currentBlock_ = nullptr;
|
||||
currentSlot_ = memoryPool.currentSlot_;
|
||||
lastSlot_ = memoryPool.lastSlot_;
|
||||
freeSlots_ = memoryPool.freeSlots;
|
||||
freeSlots_ = memoryPool.freeSlots_;
|
||||
}
|
||||
|
||||
|
||||
|
@ -87,7 +87,7 @@ noexcept
|
|||
std::swap(currentBlock_, memoryPool.currentBlock_);
|
||||
currentSlot_ = memoryPool.currentSlot_;
|
||||
lastSlot_ = memoryPool.lastSlot_;
|
||||
freeSlots_ = memoryPool.freeSlots;
|
||||
freeSlots_ = memoryPool.freeSlots_;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue