From df6d61dd40b602af55f903564358b083bb8b37e4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 5 Dec 2022 14:51:03 -0800 Subject: Use standard likely/unlikely attributes when available --- common/comptr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/comptr.h') diff --git a/common/comptr.h b/common/comptr.h index 3dc574e8..83f339ca 100644 --- a/common/comptr.h +++ b/common/comptr.h @@ -44,7 +44,7 @@ public: } ComPtr& operator=(ComPtr&& rhs) { - if(likely(&rhs != this)) + if(&rhs != this) [[allikely]] { if(mPtr) mPtr->Release(); mPtr = std::exchange(rhs.mPtr, nullptr); -- cgit v1.2.3