X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/48b980fed3435926e0b3a8d72ecb58be703a1c7a..729e4ab9bc6618bc3d8a898e575df7f4019e29ca:/icuSources/common/uobject.cpp diff --git a/icuSources/common/uobject.cpp b/icuSources/common/uobject.cpp index 5fc54238..515e943e 100644 --- a/icuSources/common/uobject.cpp +++ b/icuSources/common/uobject.cpp @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 2002-2005, International Business Machines +* Copyright (C) 2002-2008, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -56,32 +56,32 @@ U_NAMESPACE_BEGIN * and replace with uprv_malloc/uprv_free. */ -void * U_EXPORT2 UMemory::operator new(size_t size) { +void * U_EXPORT2 UMemory::operator new(size_t size) U_NO_THROW { return uprv_malloc(size); } -void U_EXPORT2 UMemory::operator delete(void *p) { +void U_EXPORT2 UMemory::operator delete(void *p) U_NO_THROW { if(p!=NULL) { uprv_free(p); } } -void * U_EXPORT2 UMemory::operator new[](size_t size) { +void * U_EXPORT2 UMemory::operator new[](size_t size) U_NO_THROW { return uprv_malloc(size); } -void U_EXPORT2 UMemory::operator delete[](void *p) { +void U_EXPORT2 UMemory::operator delete[](void *p) U_NO_THROW { if(p!=NULL) { uprv_free(p); } } #if U_HAVE_DEBUG_LOCATION_NEW -void * U_EXPORT2 UMemory::operator new(size_t size, const char* /*file*/, int /*line*/) { +void * U_EXPORT2 UMemory::operator new(size_t size, const char* /*file*/, int /*line*/) U_NO_THROW { return UMemory::operator new(size); } -void U_EXPORT2 UMemory::operator delete(void* p, const char* /*file*/, int /*line*/) { +void U_EXPORT2 UMemory::operator delete(void* p, const char* /*file*/, int /*line*/) U_NO_THROW { UMemory::operator delete(p); } #endif /* U_HAVE_DEBUG_LOCATION_NEW */