[Bf-blender-cvs] [975c45df9a1] blender-v2.83-release: Cleanup: don't use deprecated exception specifications
Jacques Lucke
noreply at git.blender.org
Thu May 14 11:25:26 CEST 2020
Commit: 975c45df9a1c21140710ef16ce5ce4b5565ab90f
Author: Jacques Lucke
Date: Thu May 14 11:24:50 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB975c45df9a1c21140710ef16ce5ce4b5565ab90f
Cleanup: don't use deprecated exception specifications
Usage of exception specifications is discouraged by the C++ core guidelines.
===================================================================
M intern/guardedalloc/cpp/mallocn.cpp
===================================================================
diff --git a/intern/guardedalloc/cpp/mallocn.cpp b/intern/guardedalloc/cpp/mallocn.cpp
index 94d614b942f..5bde16ddb42 100644
--- a/intern/guardedalloc/cpp/mallocn.cpp
+++ b/intern/guardedalloc/cpp/mallocn.cpp
@@ -21,24 +21,24 @@
#include "../MEM_guardedalloc.h"
#include <new>
-void *operator new(size_t size, const char *str) throw(std::bad_alloc);
-void *operator new[](size_t size, const char *str) throw(std::bad_alloc);
+void *operator new(size_t size, const char *str);
+void *operator new[](size_t size, const char *str);
/* not default but can be used when needing to set a string */
-void *operator new(size_t size, const char *str) throw(std::bad_alloc)
+void *operator new(size_t size, const char *str)
{
return MEM_mallocN(size, str);
}
-void *operator new[](size_t size, const char *str) throw(std::bad_alloc)
+void *operator new[](size_t size, const char *str)
{
return MEM_mallocN(size, str);
}
-void *operator new(size_t size) throw(std::bad_alloc)
+void *operator new(size_t size)
{
return MEM_mallocN(size, "C++/anonymous");
}
-void *operator new[](size_t size) throw(std::bad_alloc)
+void *operator new[](size_t size)
{
return MEM_mallocN(size, "C++/anonymous[]");
}
More information about the Bf-blender-cvs
mailing list