diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 03:28:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 03:28:10 +0100 |
commit | b9e0fd9549b3211f0bcbf83a8cec646f42155100 (patch) | |
tree | 850d4417c66dfc7843f09f8bf7aa68e9672f4a30 /compat | |
parent | 4636c7421cce996b68329de63db2a47453e4c289 (diff) |
dd
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; |