Skip to content

Commit

Permalink
fix clang format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasChr committed Oct 28, 2021
1 parent c76abb0 commit 0442268
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/loadsave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ class LoadHelper {

bool IsValid(size_t size = 1)
{
return m_buffer_ != nullptr
&& m_size_ >= (m_cur_ + size);
return m_buffer_ != nullptr && m_size_ >= (m_cur_ + size);
}

template <typename T>
Expand Down Expand Up @@ -161,8 +160,7 @@ class SaveHelper {

bool IsValid(size_t len = 1)
{
return m_buffer_ != nullptr
&& m_capacity_ >= (m_cur_ + len);
return m_buffer_ != nullptr && m_capacity_ >= (m_cur_ + len);
}

template <typename T>
Expand Down

0 comments on commit 0442268

Please sign in to comment.