bugfixes
This commit is contained in:
@ -197,6 +197,11 @@ protected:
|
|||||||
|
|
||||||
b3Array(const b3Array<T>& other)
|
b3Array(const b3Array<T>& other)
|
||||||
{
|
{
|
||||||
|
m_localElements = nullptr;
|
||||||
|
m_capacity = 0;
|
||||||
|
m_elements = nullptr;
|
||||||
|
m_count = 0;
|
||||||
|
|
||||||
Swap(other);
|
Swap(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,6 +221,11 @@ protected:
|
|||||||
|
|
||||||
b3ObjectArray(const b3ObjectArray<T>& other)
|
b3ObjectArray(const b3ObjectArray<T>& other)
|
||||||
{
|
{
|
||||||
|
m_localElements = nullptr;
|
||||||
|
m_capacity = 0;
|
||||||
|
m_elements = nullptr;
|
||||||
|
m_count = 0;
|
||||||
|
|
||||||
Swap(other);
|
Swap(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,7 +257,7 @@ template <typename T, u32 N>
|
|||||||
class b3StackObjectArray : public b3ObjectArray<T>
|
class b3StackObjectArray : public b3ObjectArray<T>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
b3StackObjectArray<T, N>() : b3ObjectArray<T>(m_stackElements, N)
|
b3StackObjectArray<T, N>() : b3ObjectArray<T>((T*)m_stackElements, N)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -275,9 +280,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//@todo
|
u8 m_stackElements[N * sizeof(T)];
|
||||||
// u8 m_bytes[N * sizeof(T)];
|
|
||||||
T m_stackElements[N];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user