diff options
author | nyamatongwe <devnull@localhost> | 2011-03-30 11:14:30 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-03-30 11:14:30 +1100 |
commit | 203b4ab06fb7b7a3e1b32fa72dc200e2298275a1 (patch) | |
tree | 6f205305e4ee9be1f3116a8f11ea48891a056911 /src | |
parent | 8d7937803d186c9a5ad3e256fc93503ba861ee78 (diff) | |
download | scintilla-mirror-203b4ab06fb7b7a3e1b32fa72dc200e2298275a1.tar.gz |
Changed loop indices to be unique and so work with VC 6.
Diffstat (limited to 'src')
-rw-r--r-- | src/ViewStyle.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 30911d3f5..a71ca9fab 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -372,15 +372,15 @@ void ViewStyle::Refresh(Surface &surface) { } CreateFont(styles[STYLE_DEFAULT]); - for (unsigned int i=0; i<stylesSize; i++) { - CreateFont(styles[i]); + for (unsigned int j=0; j<stylesSize; j++) { + CreateFont(styles[j]); } frFirst->Realise(surface, zoomLevel); - for (unsigned int i=0; i<stylesSize; i++) { - FontRealised *fr = frFirst->Find(styles[i]); - styles[i].Copy(*fr, *fr); + for (unsigned int k=0; k<stylesSize; k++) { + FontRealised *fr = frFirst->Find(styles[k]); + styles[k].Copy(*fr, *fr); } maxAscent = 1; maxDescent = 1; @@ -391,11 +391,11 @@ void ViewStyle::Refresh(Surface &surface) { someStylesProtected = false; someStylesForceCase = false; - for (unsigned int i=0; i<stylesSize; i++) { - if (styles[i].IsProtected()) { + for (unsigned int l=0; l<stylesSize; l++) { + if (styles[l].IsProtected()) { someStylesProtected = true; } - if (styles[i].caseForce != Style::caseMixed) { + if (styles[l].caseForce != Style::caseMixed) { someStylesForceCase = true; } } |