From f76f64ceb22fa0331b5db63ccb9045fce56b2d90 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Mon, 24 Dec 2007 20:37:44 -0800 Subject: [PATCH] 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] --- gfx/public/nsRegion.h | 4 ++-- gfx/src/nsRegion.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/public/nsRegion.h b/gfx/public/nsRegion.h index 34ca0375da3..f9b71e300d4 100644 --- a/gfx/public/nsRegion.h +++ b/gfx/public/nsRegion.h @@ -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 { diff --git a/gfx/src/nsRegion.cpp b/gfx/src/nsRegion.cpp index 8d712025227..f2957b2188b 100644 --- a/gfx/src/nsRegion.cpp +++ b/gfx/src/nsRegion.cpp @@ -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(aRect)); }