зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
64feebf4bd
Коммит
f76f64ceb2
|
@ -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));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче