diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-01-28 09:10:00 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-01-28 09:10:00 +1100 | 
| commit | 1bd42ee98eff237cbc8e3856aa1e63ef5bc5b64a (patch) | |
| tree | f056a21042b9c35d350b8356742baea9b4d333a8 /src/RESearch.cxx | |
| parent | 6141b5164e83cf1122027decd88829e735ba707d (diff) | |
| download | scintilla-mirror-1bd42ee98eff237cbc8e3856aa1e63ef5bc5b64a.tar.gz | |
Use std::end when filling arrays as reduces chance of mistake.
Diffstat (limited to 'src/RESearch.cxx')
| -rw-r--r-- | src/RESearch.cxx | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/src/RESearch.cxx b/src/RESearch.cxx index 31ee9aaac..f7ae04974 100644 --- a/src/RESearch.cxx +++ b/src/RESearch.cxx @@ -205,6 +205,7 @@  #include <stdexcept>  #include <string>  #include <algorithm> +#include <iterator>  #include "Position.h"  #include "CharClassify.h" @@ -254,9 +255,9 @@ RESearch::RESearch(CharClassify *charClassTable) {  	charClass = charClassTable;  	sta = NOP;                  /* status of lastpat */  	bol = 0; -	std::fill(bittab, bittab + BITBLK, static_cast<unsigned char>(0)); -	std::fill(tagstk, tagstk + MAXTAG, 0); -	std::fill(nfa, nfa + MAXNFA, '\0'); +	std::fill(bittab, std::end(bittab), static_cast<unsigned char>(0)); +	std::fill(tagstk, std::end(tagstk), 0); +	std::fill(nfa, std::end(nfa), '\0');  	Clear();  } | 
