diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/safe-ptr.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/safe-ptr.hpp b/compat/safe-ptr.hpp index 5f513f82..ec4a8e02 100644 --- a/compat/safe-ptr.hpp +++ b/compat/safe-ptr.hpp @@ -29,7 +29,7 @@ public: ~safe_ptr() noexcept { - if (ptr) + if (ptr) [[likely]] delete ptr; ptr = (T*)-0xbadbabe; } @@ -42,7 +42,7 @@ public: safe_ptr& operator=(safe_ptr&& other) noexcept { fm_assert(this != &other); - if (ptr) + if (ptr) [[likely]] delete ptr; ptr = other.ptr; other.ptr = nullptr; |