From 7d1a64e1c122f29f90d01930278751fb535baeb7 Mon Sep 17 00:00:00 2001 From: Uwe Date: Mon, 7 Mar 2022 13:57:01 +0100 Subject: [PATCH] [App] AutoTransaction: a change to silence MSVC compiler as proposed here: https://github.com/FreeCAD/FreeCAD/pull/6519#discussion_r820641762 --- src/App/AutoTransaction.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/AutoTransaction.h b/src/App/AutoTransaction.h index 47ce37c4f9..00a02d8729 100644 --- a/src/App/AutoTransaction.h +++ b/src/App/AutoTransaction.h @@ -33,7 +33,7 @@ class Application; class AppExport AutoTransaction { private: /// Private new operator to prevent heap allocation - void* operator new(std::size_t size); + void* operator new (std::size_t) = delete; public: /** Constructor @@ -122,7 +122,7 @@ public: private: /// Private new operator to prevent heap allocation - void* operator new(std::size_t size); + void* operator new (std::size_t) = delete; private: bool active;