From 6470056a0d1ed1a07c823d46ea292d69d3c2a8fb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 2 Apr 2019 17:54:04 +1100 Subject: Cleanup: empty expression statement warning --- intern/string/intern/STR_String.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'intern/string') diff --git a/intern/string/intern/STR_String.cpp b/intern/string/intern/STR_String.cpp index 4030ae029cc..b674871fbf3 100644 --- a/intern/string/intern/STR_String.cpp +++ b/intern/string/intern/STR_String.cpp @@ -550,8 +550,9 @@ STR_String& STR_String::TrimLeft() { int skip; assertd(this->m_data != NULL); - for (skip = 0; isSpace(this->m_data[skip]); skip++, this->m_len--) - {}; + for (skip = 0; isSpace(this->m_data[skip]); skip++, this->m_len--) { + /* pass */ + } memmove(this->m_data, this->m_data + skip, this->m_len + 1); return *this; } @@ -590,8 +591,9 @@ STR_String& STR_String::TrimLeft(char *set) { int skip; assertd(this->m_data != NULL); - for (skip = 0; this->m_len && strchr(set, this->m_data[skip]); skip++, this->m_len--) - {}; + for (skip = 0; this->m_len && strchr(set, this->m_data[skip]); skip++, this->m_len--) { + /* pass */ + } memmove(this->m_data, this->m_data + skip, this->m_len + 1); return *this; } -- cgit v1.2.3