--- 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()); } // ============================================================================