diff options
| author | nyamatongwe <unknown> | 2011-03-30 11:14:30 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-03-30 11:14:30 +1100 | 
| commit | 48028319f42e97ade19f187e909d2d1ed2807e56 (patch) | |
| tree | df5e13f6074d6661353fa069e716a898b7beaf3d /src/ViewStyle.cxx | |
| parent | f88ad3864ccdf534e46cc004b377b2c08d318a04 (diff) | |
| download | scintilla-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.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;  		}  	} | 
