Cleanup: empty expression statement warning

This commit is contained in:
Campbell Barton
2019-04-02 17:54:04 +11:00
parent 17c15798c3
commit 6470056a0d
41 changed files with 86 additions and 83 deletions

View File

@@ -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;
}