mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed dictionary move constructor
This commit is contained in:
parent
fdb4d7bbb5
commit
9860ef1cb3
1 changed files with 10 additions and 3 deletions
|
@ -389,12 +389,19 @@ public:
|
||||||
|
|
||||||
Dictionary(Dictionary&& val)
|
Dictionary(Dictionary&& val)
|
||||||
{
|
{
|
||||||
mAllocSize = val.mAllocSize;
|
|
||||||
mCount = val.mCount;
|
|
||||||
mBuckets = val.mBuckets;
|
mBuckets = val.mBuckets;
|
||||||
mEntries = val.mEntries;
|
mEntries = val.mEntries;
|
||||||
mFreeCount = val.mFreeCount;
|
mAllocSize = val.mAllocSize;
|
||||||
|
mCount = val.mCount;
|
||||||
mFreeList = val.mFreeList;
|
mFreeList = val.mFreeList;
|
||||||
|
mFreeCount = val.mFreeCount;
|
||||||
|
|
||||||
|
val.mBuckets = NULL;
|
||||||
|
val.mEntries = NULL;
|
||||||
|
val.mAllocSize = 0;
|
||||||
|
val.mCount = 0;
|
||||||
|
val.mFreeList = 0;
|
||||||
|
val.mFreeCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
~Dictionary()
|
~Dictionary()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue