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)); }