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:
authorGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-06-29 23:46:28 +0400
committerGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-06-29 23:46:28 +0400
commit5d491681e0d1e6b8450dedc64bd45408bb9066cd (patch)
tree0aec7b481274276b89584c8a7bdf3f3d6800c6b0 /intern/string
parentd9b74dcbc9fda3d706b41337c25b143e42ad4ddd (diff)
Fix compiler warning, make for body explicit.
Diffstat (limited to 'intern/string')
-rw-r--r--intern/string/intern/STR_String.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/string/intern/STR_String.cpp b/intern/string/intern/STR_String.cpp
index dcc52e2a3e7..646b1a853dc 100644
--- a/intern/string/intern/STR_String.cpp
+++ b/intern/string/intern/STR_String.cpp
@@ -559,7 +559,8 @@ STR_String& STR_String::TrimLeft()
{
int skip;
assertd(pData != NULL);
- for (skip=0; isSpace(pData[skip]); skip++, Len--);
+ for (skip=0; isSpace(pData[skip]); skip++, Len--)
+ {};
memmove(pData, pData+skip, Len+1);
return *this;
}
@@ -598,7 +599,8 @@ STR_String& STR_String::TrimLeft(char *set)
{
int skip;
assertd(pData != NULL);
- for (skip=0; Len && strchr(set, pData[skip]); skip++, Len--);
+ for (skip=0; Len && strchr(set, pData[skip]); skip++, Len--)
+ {};
memmove(pData, pData+skip, Len+1);
return *this;
}