Skip to content

Commit

Permalink
Fixes for static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Dec 3, 2021
1 parent 2adabbc commit 947b130
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/General/Vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ template<class T, size_t N> bool Vector<T, N>::IterateWhile(function_ref<bool(T&
size_t count = 0;
for (size_t i = startAt; i < totalElements; ++i)
{
if(!func(storage[i], count))
if (!func(storage[i], count))
{
return false;
}
Expand All @@ -176,7 +176,7 @@ template<class T, size_t N> bool Vector<T, N>::IterateWhile(function_ref<bool(co
size_t count = 0;
for (size_t i = startAt; i < totalElements; ++i)
{
if(!func(storage[i], count))
if (!func(storage[i], count))
{
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions src/RTOSIface/RTOSIface.h
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ template<class T> class ReadLockedPointer
void Release() noexcept { ptr = nullptr; locker.Release(); }

ReadLockedPointer(const ReadLockedPointer<T>&) = delete;
ReadLockedPointer& operator=(const ReadLockedPointer<T>&) = delete;
ReadLockedPointer<T>& operator=(const ReadLockedPointer<T>&) = delete;

private:
ReadLocker locker;
Expand All @@ -507,7 +507,7 @@ template<class T> class WriteLockedPointer
T* Ptr() const noexcept { return ptr; }

WriteLockedPointer(const WriteLockedPointer<T>&) = delete;
WriteLockedPointer& operator=(const WriteLockedPointer<T>&) = delete;
WriteLockedPointer<T>& operator=(const WriteLockedPointer<T>&) = delete;

private:
WriteLocker locker;
Expand Down

0 comments on commit 947b130

Please sign in to comment.