diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-26 20:01:00 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-26 20:01:00 +1000 | 
| commit | 1934f3df9beb1188c16be8a4d620ba234cdb87d2 (patch) | |
| tree | 322a91bbd9348c73ef45335cd3aaf6aadd8626d5 /src | |
| parent | a897c17ff7e3fdeca4266f170fb976604af44b2c (diff) | |
| download | scintilla-mirror-1934f3df9beb1188c16be8a4d620ba234cdb87d2.tar.gz | |
Change type to avoid casts.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ViewStyle.cxx | 4 | ||||
| -rw-r--r-- | src/ViewStyle.h | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 74e70bedc..76f33fa44 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -377,10 +377,10 @@ void ViewStyle::ReleaseAllExtendedStyles() {  }  int ViewStyle::AllocateExtendedStyles(int numberStyles) { -	const int startRange = static_cast<int>(nextExtendedStyle); +	const int startRange = nextExtendedStyle;  	nextExtendedStyle += numberStyles;  	EnsureStyle(nextExtendedStyle); -	for (size_t i=startRange; i<nextExtendedStyle; i++) { +	for (int i=startRange; i<nextExtendedStyle; i++) {  		styles[i].ClearTo(styles[STYLE_DEFAULT]);  	}  	return startRange; diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 4348e3eaa..c2e052e03 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -91,7 +91,7 @@ class ViewStyle {  	FontMap fonts;  public:  	std::vector<Style> styles; -	size_t nextExtendedStyle; +	int nextExtendedStyle;  	std::vector<LineMarker> markers;  	int largestMarkerHeight;  	std::vector<Indicator> indicators; | 
