Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-02 09:54:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-02 09:54:04 +0300
commit6470056a0d1ed1a07c823d46ea292d69d3c2a8fb (patch)
treed0aebdd1981fba294408cdda08e799e7f0e525e0 /intern/string
parent17c15798c35f33e4150beacb0f7b612bcef90c3e (diff)
Cleanup: empty expression statement warning
Diffstat (limited to 'intern/string')
-rw-r--r--intern/string/intern/STR_String.cpp10
1 files changed, 6 insertions, 4 deletions
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;
}