[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21241] branches/blender2.5/blender/intern /string/intern/STR_String.cpp: Fix compiler warning, make for body explicit .

gsr b3d gsr.b3d at infernal-iceberg.com
Mon Jun 29 21:46:28 CEST 2009


Revision: 21241
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21241
Author:   gsrb3d
Date:     2009-06-29 21:46:28 +0200 (Mon, 29 Jun 2009)

Log Message:
-----------
Fix compiler warning, make for body explicit.

Modified Paths:
--------------
    branches/blender2.5/blender/intern/string/intern/STR_String.cpp

Modified: branches/blender2.5/blender/intern/string/intern/STR_String.cpp
===================================================================
--- branches/blender2.5/blender/intern/string/intern/STR_String.cpp	2009-06-29 19:37:09 UTC (rev 21240)
+++ branches/blender2.5/blender/intern/string/intern/STR_String.cpp	2009-06-29 19:46:28 UTC (rev 21241)
@@ -559,7 +559,8 @@
 {
 	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 @@
 {
 	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;
 }





More information about the Bf-blender-cvs mailing list