To improve performance, change string iterator postfix ++ to prefix ++ when used as a statement. b=78032 r=peterv, scc, harishd, dmose sr=hyatt a=asa

git-svn-id: svn://10.0.0.236/trunk@97460 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-06-19 22:38:45 +00:00
parent ca38d51701
commit c203792c3d
8 changed files with 85 additions and 85 deletions

View File

@@ -835,9 +835,9 @@ CountCharInReadable( const nsAString& aStr,
while (begin != end) {
if (*begin == aChar) {
count++;
++count;
}
begin++;
++begin;
}
return count;
@@ -856,9 +856,9 @@ CountCharInReadable( const nsACString& aStr,
while (begin != end) {
if (*begin == aChar) {
count++;
++count;
}
begin++;
++begin;
}
return count;