From 26ece78df4ad0197c2645e715e6cbfbed0a42616 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 6 Mar 2022 23:20:05 +0100 Subject: [PATCH] [App] add a missing return statement (#6519) * [App] add a missing return statement as discussed here: https://github.com/FreeCAD/FreeCAD/commit/ceae048a432ef43b2ed920beb83ed9ee02fd8e8b#commitcomment-68066635 --- src/App/AutoTransaction.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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;