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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user