From 6d93e8319411fca2c0d67e7ab29d135f5348328c Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 4 Dec 2024 15:05:08 -0500 Subject: Update dependencies and fix compilation errors/warnings for g++14 and c++20 --- binaryninjaapi.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index e553aa48..d9843a8b 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -243,9 +243,9 @@ namespace BinaryNinja { #endif public: - Ref() : m_obj(nullptr) {} + Ref() : m_obj(nullptr) {} - Ref(T* obj) : m_obj(obj) + Ref(T* obj) : m_obj(obj) { if (m_obj) { @@ -256,7 +256,7 @@ namespace BinaryNinja { } } - Ref(const Ref& obj) : m_obj(obj.m_obj) + Ref(const Ref& obj) : m_obj(obj.m_obj) { if (m_obj) { @@ -267,7 +267,7 @@ namespace BinaryNinja { } } - Ref(Ref&& other) : m_obj(other.m_obj) + Ref(Ref&& other) : m_obj(other.m_obj) { other.m_obj = 0; #ifdef BN_REF_COUNT_DEBUG @@ -275,7 +275,7 @@ namespace BinaryNinja { #endif } - ~Ref() + ~Ref() { if (m_obj) { @@ -369,8 +369,8 @@ namespace BinaryNinja { T* m_obj; public: - CallbackRef(void* obj) : m_obj((T*)obj) { m_obj->AddRefForCallback(); } - ~CallbackRef() { m_obj->ReleaseForCallback(); } + CallbackRef(void* obj) : m_obj((T*)obj) { m_obj->AddRefForCallback(); } + ~CallbackRef() { m_obj->ReleaseForCallback(); } operator T*() const { return m_obj; } T* operator->() const { return m_obj; } T& operator*() const { return *m_obj; } @@ -19983,7 +19983,7 @@ struct fmt::formatter, void>> { auto it = ctx.begin(), end = ctx.end(); if (it != end && (*it == 's' || *it == 'S' || *it == 'd' || *it == 'x')) presentation = *it++; - if (it != end && *it != '}') detail::throw_format_error("invalid format"); + if (it != end && *it != '}') report_error("invalid format"); return it; } }; -- cgit v1.3.1