summaryrefslogtreecommitdiff
path: root/view/sharedcache
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2025-05-28 16:16:26 -0400
committerAlexander Taylor <alex@vector35.com>2025-06-25 18:36:48 -0400
commit86af4103eee7e4eeb5f0ba3fef9e3979a4399ee9 (patch)
tree5f92a4005b2c3dc8c5997a60f535f19d9f154e8c /view/sharedcache
parent8a4dafc1b6ea114a30844dd153de2714d2d286f9 (diff)
Fix cxx20 build issue on Linux.
Apparently the compiler on macOS is less strict about this change?
Diffstat (limited to 'view/sharedcache')
-rw-r--r--view/sharedcache/core/refcountobject.h10
1 files 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<T>() : m_obj(NULL) {}
+ DSCRef() : m_obj(NULL) {}
- DSCRef<T>(T* obj) : m_obj(obj)
+ DSCRef(T* obj) : m_obj(obj)
{
if (m_obj)
{
@@ -71,7 +71,7 @@ namespace BinaryNinja::DSC {
}
}
- DSCRef<T>(const DSCRef<T>& 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<T>()
+ ~DSCRef()
{
if (m_obj)
{
@@ -94,7 +94,7 @@ namespace BinaryNinja::DSC {
}
// move constructor
- DSCRef<T>(DSCRef<T>&& other) : m_obj(other.m_obj)
+ DSCRef(DSCRef&& other) : m_obj(other.m_obj)
{
other.m_obj = 0;
#ifdef BN_REF_COUNT_DEBUG