aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-03-30 11:14:30 +1100
committernyamatongwe <unknown>2011-03-30 11:14:30 +1100
commit48028319f42e97ade19f187e909d2d1ed2807e56 (patch)
treedf5e13f6074d6661353fa069e716a898b7beaf3d /src/ViewStyle.cxx
parentf88ad3864ccdf534e46cc004b377b2c08d318a04 (diff)
downloadscintilla-mirror-48028319f42e97ade19f187e909d2d1ed2807e56.tar.gz
Changed loop indices to be unique and so work with VC 6.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx16
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;
}
}