From 8250cab5908d921072e0fb009da18d76a72d29af Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 6 Mar 2022 03:02:14 +0100 Subject: [PATCH] [App] try to fix CI build failure - since I have no clue what the error is about: https://gitlab.com/freecad/FreeCAD-CI/-/jobs/2167699355 I follow MSVC's advice that tells me that a function definition in the .cpp file is missing --- src/App/AutoTransaction.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/App/AutoTransaction.cpp b/src/App/AutoTransaction.cpp index 595d1424c4..203a1fc9b5 100644 --- a/src/App/AutoTransaction.cpp +++ b/src/App/AutoTransaction.cpp @@ -37,6 +37,11 @@ using namespace App; static int _TransactionLock; static int _TransactionClosed; +void* App::AutoTransaction::operator new(size_t size) +{ + return nullptr; +} + AutoTransaction::AutoTransaction(const char *name, bool tmpName) { auto &app = GetApplication(); if(name && app._activeTransactionGuard>=0) { @@ -240,4 +245,8 @@ bool TransactionLocker::isLocked() { return _TransactionLock > 0; } +void* App::TransactionLocker::operator new(size_t size) +{ + return nullptr; +}