From 86af4103eee7e4eeb5f0ba3fef9e3979a4399ee9 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Wed, 28 May 2025 16:16:26 -0400 Subject: Fix cxx20 build issue on Linux. Apparently the compiler on macOS is less strict about this change? --- view/sharedcache/core/refcountobject.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/view/sharedcache/core/refcountobject.h b/view/sharedcache/core/refcountobject.h index 1b79f12f..cba71016 100644 --- a/view/sharedcache/core/refcountobject.h +++ b/view/sharedcache/core/refcountobject.h @@ -58,9 +58,9 @@ namespace BinaryNinja::DSC { #endif public: - DSCRef() : m_obj(NULL) {} + DSCRef() : m_obj(NULL) {} - DSCRef(T* obj) : m_obj(obj) + DSCRef(T* obj) : m_obj(obj) { if (m_obj) { @@ -71,7 +71,7 @@ namespace BinaryNinja::DSC { } } - DSCRef(const DSCRef& obj) : m_obj(obj.m_obj) + DSCRef(const DSCRef& obj) : m_obj(obj.m_obj) { if (m_obj) { @@ -82,7 +82,7 @@ namespace BinaryNinja::DSC { } } - ~DSCRef() + ~DSCRef() { if (m_obj) { @@ -94,7 +94,7 @@ namespace BinaryNinja::DSC { } // move constructor - DSCRef(DSCRef&& other) : m_obj(other.m_obj) + DSCRef(DSCRef&& other) : m_obj(other.m_obj) { other.m_obj = 0; #ifdef BN_REF_COUNT_DEBUG -- cgit v1.3.1