Minor tweaks

This commit is contained in:
Wojtek Figat
2023-09-28 10:58:29 +02:00
parent 37d166dce7
commit b7e871ecfd
2 changed files with 3 additions and 3 deletions

View File

@@ -572,7 +572,7 @@ public:
_locker = New<CriticalSection>(); _locker = New<CriticalSection>();
ScopeLock lock(*_locker); ScopeLock lock(*_locker);
if (_functions && _functions->Contains(f)) if (_functions && _functions->Contains(f))
return; return;
#endif #endif
Bind(f); Bind(f);
} }

View File

@@ -303,9 +303,9 @@ inline typename TRemoveReference<T>::Type&& MoveTemp(T&& obj)
template<typename T> template<typename T>
inline void Swap(T& a, T& b) noexcept inline void Swap(T& a, T& b) noexcept
{ {
T tmp = a; T tmp = MoveTemp(a);
a = b; a = b;
b = tmp; b = MoveTemp(tmp);
} }
//////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////