diff --git a/src/App/AutoTransaction.h b/src/App/AutoTransaction.h index 6f75d752b3..c50435baf3 100644 --- a/src/App/AutoTransaction.h +++ b/src/App/AutoTransaction.h @@ -31,7 +31,9 @@ class Application; class AppExport AutoTransaction { private: /// Private new operator to prevent heap allocation - void* operator new(size_t size); + void* operator new(size_t size) { + return nullptr; + }; public: /** Constructor @@ -120,7 +122,9 @@ public: private: /// Private new operator to prevent heap allocation - void* operator new(size_t size); + void* operator new(size_t size) { + return nullptr; + }; private: bool active;