From 8bca1e00ec35efd9f23e082ef00132a6e3c206f8 Mon Sep 17 00:00:00 2001 From: Uwe Date: Mon, 7 Mar 2022 00:50:18 +0100 Subject: [PATCH] Revert "[App] add a missing return statement (#6519)" This reverts commit 1be4ed57aefafd02cd0d6f7e3825fff12a863f71. --- src/App/AutoTransaction.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/App/AutoTransaction.h b/src/App/AutoTransaction.h index c50435baf3..6f75d752b3 100644 --- a/src/App/AutoTransaction.h +++ b/src/App/AutoTransaction.h @@ -31,9 +31,7 @@ class Application; class AppExport AutoTransaction { private: /// Private new operator to prevent heap allocation - void* operator new(size_t size) { - return nullptr; - }; + void* operator new(size_t size); public: /** Constructor @@ -122,9 +120,7 @@ public: private: /// Private new operator to prevent heap allocation - void* operator new(size_t size) { - return nullptr; - }; + void* operator new(size_t size); private: bool active;