mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Get rid of MemAlloc.
This commit is contained in:
@ -557,11 +557,7 @@ inline T * TList<T>::New (ELinkType linkType, T * existingNode, const char file[
|
||||
//===========================================================================
|
||||
template<class T>
|
||||
inline T * TList<T>::NewFlags (unsigned flags, ELinkType linkType, T * existingNode, const char file[], int line) {
|
||||
if (!file) {
|
||||
file = __FILE__;
|
||||
line = __LINE__;
|
||||
}
|
||||
T * node = new(MemAlloc(sizeof(T), flags, file, line)) T;
|
||||
T * node = new T();
|
||||
if (linkType != kListUnlinked)
|
||||
Link(node, linkType, existingNode);
|
||||
return node;
|
||||
|
@ -116,11 +116,8 @@ void CBaseSpareList::GrowSpareList (unsigned objectSize, const char typeName[])
|
||||
|
||||
// allocate a block of memory to hold a bunch
|
||||
// of T-objects, but allocate them as "raw" memory
|
||||
AllocNode * allocNode = (AllocNode *) MemAlloc(
|
||||
sizeof(AllocNode) + objectSize * m_chunkSize,
|
||||
0, // flags
|
||||
typeName, // file
|
||||
0 // line
|
||||
AllocNode * allocNode = (AllocNode *) malloc(
|
||||
sizeof(AllocNode) + objectSize * m_chunkSize
|
||||
);
|
||||
|
||||
// link allocation onto head of allocation list
|
||||
|
Reference in New Issue
Block a user