str.cxx

changeset 17
b4fcc69e426a
parent 16
393359908179
child 30
6c4efed2dbdd
--- a/str.cxx	Sat Jul 14 17:24:21 2012 +0300
+++ b/str.cxx	Sat Jul 14 17:35:19 2012 +0300
@@ -344,12 +344,8 @@
 	return icompare (str ((char*)c));
 }
 
-int str::icompare (str c) {
-	str a = text;
-	a.tolower();
-	str b = c;
-	b.tolower();
-	return strcmp (a.chars(), b.chars());
+int str::icompare (str b) {
+	return strcmp (tolower().chars(), b.tolower().chars());
 }
 
 // ============================================================================

mercurial