aboutsummaryrefslogtreecommitdiffstats
path: root/common/comptr.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-12-05 14:51:03 -0800
committerChris Robinson <[email protected]>2022-12-05 14:51:03 -0800
commitdf6d61dd40b602af55f903564358b083bb8b37e4 (patch)
tree84113a098867e2ba82aa1f156911e94755fde727 /common/comptr.h
parent73df39b8f8cefa0c0fca0e287b548063e9e62636 (diff)
Use standard likely/unlikely attributes when available
Diffstat (limited to 'common/comptr.h')
-rw-r--r--common/comptr.h2
1 files changed, 1 insertions, 1 deletions
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);