aboutsummaryrefslogtreecommitdiffstats
path: root/common/comptr.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-03-01 11:35:39 -0800
committerChris Robinson <[email protected]>2023-03-01 11:35:39 -0800
commitfde74453a62a1ce4b5efaac0ec1835b9f5731e25 (patch)
treeed74db646800b78ca8651bb5291453927f48cd93 /common/comptr.h
parentec9c421d312d6df701631877f6ce6256355101dc (diff)
Use macros for the likely/unlikely attributes
The syntax parser for GCC 8 (and earlier?) fails when these attributes are in certain places.
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 f2355d05..cdc6dec0 100644
--- a/common/comptr.h
+++ b/common/comptr.h
@@ -44,7 +44,7 @@ public:
}
ComPtr& operator=(ComPtr&& rhs)
{
- if(&rhs != this) [[likely]]
+ if(&rhs != this) LIKELY
{
if(mPtr) mPtr->Release();
mPtr = std::exchange(rhs.mPtr, nullptr);