Bug 408812 - "AIX Compilation error for trunk build source nsThebesRegion.cpp : ./dist/include/gfx/nsRegion.h", line 85.18: 1540-0723 (S) The inline function "void operator delete(void *, size_t)" is referenced, but it is not defined" [p=shailen.n.jain@gmail.com (Shailen) r=vlad a1.9=beltzner]

This commit is contained in:
reed@reedloden.com 2007-12-24 20:37:44 -08:00
Родитель 64feebf4bd
Коммит f76f64ceb2
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -81,8 +81,8 @@ class NS_GFX nsRegion
RgnRect (PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight) : nsRectFast (aX, aY, aWidth, aHeight) {}
RgnRect (const nsRectFast& aRect) : nsRectFast (aRect) {}
inline void* operator new (size_t) CPP_THROW_NEW;
inline void operator delete (void* aRect, size_t);
void* operator new (size_t) CPP_THROW_NEW;
void operator delete (void* aRect, size_t);
RgnRect& operator = (const RgnRect& aRect) // Do not overwrite prev/next pointers
{

Просмотреть файл

@ -209,12 +209,12 @@ void RgnRectMemoryAllocator::Free (nsRegion::RgnRect* aRect)
static RgnRectMemoryAllocator gRectPool (INIT_MEM_CHUNK_ENTRIES);
inline void* nsRegion::RgnRect::operator new (size_t) CPP_THROW_NEW
void* nsRegion::RgnRect::operator new (size_t) CPP_THROW_NEW
{
return gRectPool.Alloc ();
}
inline void nsRegion::RgnRect::operator delete (void* aRect, size_t)
void nsRegion::RgnRect::operator delete (void* aRect, size_t)
{
gRectPool.Free (static_cast<RgnRect*>(aRect));
}