mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 03:30:32 -04:00
- Update WWW [1] - Regenerate patches - Add LICENSE PR: 208858 [1] Submitted by: fcsk.aim@gmail.com [1]
20 lines
532 B
C++
20 lines
532 B
C++
--- src/nvcore/Memory.h.orig 2010-05-15 09:12:05 UTC
|
|
+++ src/nvcore/Memory.h
|
|
@@ -28,7 +28,7 @@ namespace nv
|
|
|
|
// Override new/delete
|
|
|
|
-inline void * operator new (size_t size) throw()
|
|
+inline void * operator new (size_t size) throw(std::bad_alloc)
|
|
{
|
|
return nv::mem::malloc(size);
|
|
}
|
|
@@ -38,7 +38,7 @@ inline void operator delete (void *p) th
|
|
nv::mem::free(p);
|
|
}
|
|
|
|
-inline void * operator new [] (size_t size) throw()
|
|
+inline void * operator new [] (size_t size) throw(std::bad_alloc)
|
|
{
|
|
return nv::mem::malloc(size);
|
|
}
|