diff --git a/modules/juce_core/memory/juce_Atomic.h b/modules/juce_core/memory/juce_Atomic.h index 0f388a87bf..d7a61d45a3 100644 --- a/modules/juce_core/memory/juce_Atomic.h +++ b/modules/juce_core/memory/juce_Atomic.h @@ -258,27 +258,27 @@ private: template struct WindowsInterlockedHelpersBase { - static inline Type exchange(volatile Type* value, Type other) noexcept + static inline Type exchange (volatile Type* value, Type other) noexcept { return castFrom (juce_InterlockedExchange (reinterpret_cast (value), castTo (other))); } - static inline Type add(volatile Type* value, Type other) noexcept + static inline Type add (volatile Type* value, Type other) noexcept { return castFrom (juce_InterlockedExchangeAdd (reinterpret_cast (value), castTo (other)) + castTo (other)); } - static inline Type inc(volatile Type* value) noexcept + static inline Type inc (volatile Type* value) noexcept { return castFrom (juce_InterlockedIncrement (reinterpret_cast (value))); } - static inline Type dec(volatile Type* value) noexcept + static inline Type dec (volatile Type* value) noexcept { return castFrom (juce_InterlockedDecrement (reinterpret_cast (value))); } - static inline Type cmp(volatile Type* value, Type other, Type comparand) noexcept + static inline Type cmp (volatile Type* value, Type other, Type comparand) noexcept { return castFrom (juce_InterlockedCompareExchange (reinterpret_cast (value), castTo (other), castTo (comparand))); } @@ -290,27 +290,27 @@ private: template struct WindowsInterlockedHelpersBase { - static inline Type exchange(volatile Type* value, Type other) noexcept + static inline Type exchange (volatile Type* value, Type other) noexcept { return castFrom (juce_InterlockedExchange64 (reinterpret_cast (value), castTo (other))); } - static inline Type add(volatile Type* value, Type other) noexcept + static inline Type add (volatile Type* value, Type other) noexcept { return castFrom (juce_InterlockedExchangeAdd64 (reinterpret_cast (value), castTo (other)) + castTo (other)); } - static inline Type inc(volatile Type* value) noexcept + static inline Type inc (volatile Type* value) noexcept { return castFrom (juce_InterlockedIncrement64 (reinterpret_cast (value))); } - static inline Type dec(volatile Type* value) noexcept + static inline Type dec (volatile Type* value) noexcept { return castFrom (juce_InterlockedDecrement64 (reinterpret_cast (value))); } - static inline Type cmp(volatile Type* value, Type other, Type comparand) noexcept + static inline Type cmp (volatile Type* value, Type other, Type comparand) noexcept { return castFrom (juce_InterlockedCompareExchange64 (reinterpret_cast (value), castTo (other), castTo (comparand))); }