mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Fix mac build bustage. Variables declared in the init section of a loop are not valid beyond the scope of the loop (regardless of what VC++ says).
This commit is contained in:
parent
b3e3812400
commit
7ef6815b7a
@ -618,7 +618,7 @@ nsFormControlFrame::GetTextSize(nsIPresContext& aPresContext, nsFormControlFrame
|
||||
for (int i = 0; i < aNumChars; i+=2) {
|
||||
val += char1;
|
||||
}
|
||||
for (i = 1; i < aNumChars; i+=2) {
|
||||
for (int i = 1; i < aNumChars; i+=2) {
|
||||
val += char2;
|
||||
}
|
||||
return GetTextSize(aPresContext, aFrame, val, aSize);
|
||||
|
@ -618,7 +618,7 @@ nsFormControlFrame::GetTextSize(nsIPresContext& aPresContext, nsFormControlFrame
|
||||
for (int i = 0; i < aNumChars; i+=2) {
|
||||
val += char1;
|
||||
}
|
||||
for (i = 1; i < aNumChars; i+=2) {
|
||||
for (int i = 1; i < aNumChars; i+=2) {
|
||||
val += char2;
|
||||
}
|
||||
return GetTextSize(aPresContext, aFrame, val, aSize);
|
||||
|
Loading…
Reference in New Issue
Block a user