From 1a383f8157b1841c9a5c95f25ad6e3220ae1a18e Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Tue, 25 Jul 2023 12:57:47 +0100 Subject: [PATCH] [*] Two annoying formatting issues in RWLock --- Source/Threading/Primitives/AuRWLock.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Threading/Primitives/AuRWLock.cpp b/Source/Threading/Primitives/AuRWLock.cpp index b1e9e924..8887b96e 100644 --- a/Source/Threading/Primitives/AuRWLock.cpp +++ b/Source/Threading/Primitives/AuRWLock.cpp @@ -13,15 +13,14 @@ namespace Aurora::Threading::Primitives { #if defined(RWLOCK_VIEW_HAS_PARENT) -#define ViewParent (&this->parent_) + #define ViewParent (&this->parent_) #else -#define ViewParent ((T *)(((char *)this) - (bIsReadView ? RWLockImpl::kOffsetOfRead : RWLockImpl::kOffsetOfWrite))) + #define ViewParent ((T *)(((char *)this) - (bIsReadView ? RWLockImpl::kOffsetOfRead : RWLockImpl::kOffsetOfWrite))) #endif template void RWLockAccessView::Unlock() { - if constexpr (bIsReadView) { ViewParent->UnlockRead(); @@ -340,7 +339,6 @@ namespace Aurora::Threading::Primitives template void RWLockImpl::UnlockWrite() { - if constexpr (!bIsWriteRecursionAllowed) { {