From 130798445f48044843bb5adc3ef4e3b52690a007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 25 Feb 2003 15:05:32 +0000 Subject: [PATCH] Followed Ingo's suggestions and removed the "nothrow" stuff completely - since we are explicitely compiling with -fno-exceptions, there shouldn't be any problems. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2844 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/cpp.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/cpp.h b/src/add-ons/kernel/file_systems/bfs/cpp.h index 21c75d9e48..f0e8aaa709 100644 --- a/src/add-ons/kernel/file_systems/bfs/cpp.h +++ b/src/add-ons/kernel/file_systems/bfs/cpp.h @@ -23,14 +23,14 @@ inline void * -operator new(size_t size, const nothrow_t&) throw() +operator new(size_t size) { return malloc(size); } inline void * -operator new[](size_t size, const nothrow_t&) throw() +operator new[](size_t size) { return malloc(size); } @@ -52,8 +52,5 @@ operator delete[](void *ptr) // we're using virtuals extern "C" void __pure_virtual(); -// we are only using the nothrow-version of new -#define new new (nothrow) - #endif /* CPP_H */