src/String.cc

changeset 89
029a330a9bef
parent 88
5def6ff8b466
child 115
9be16e1c1e44
--- a/src/String.cc	Sun Feb 02 17:06:39 2014 +0200
+++ b/src/String.cc	Sun Feb 02 18:07:06 2014 +0200
@@ -59,8 +59,9 @@
 				copy.RemoveAt (i);
 
 	/*
-	while(( pos = copy.first( c )) != -1 )
-		copy.erase( pos );
+	int pos = 0;
+	while ((pos = copy.First (c)) != -1)
+		copy.RemoveAt (pos--);
 	*/
 
 	return copy;
@@ -72,7 +73,7 @@
 {
 	String newstr = mString;
 
-	for (char & c : newstr)
+	for (char& c : newstr)
 		if (c >= 'a' && c <= 'z')
 			c -= 'a' - 'A';
 

mercurial