diff options
| author | nyamatongwe <unknown> | 2010-09-24 15:25:26 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-09-24 15:25:26 +1000 | 
| commit | 582af035f6bca12900c782340f006977fadcaa22 (patch) | |
| tree | e29dd0e3cbd7f362537fdfa6e0d8ff751444c247 /src/CellBuffer.cxx | |
| parent | 7fb06ca08a70dd9f9549b1e34c7dd38e9ca1413a (diff) | |
| download | scintilla-mirror-582af035f6bca12900c782340f006977fadcaa22.tar.gz | |
Added GetRange method to SplitVector as fast way to retrieve elements.
Diffstat (limited to 'src/CellBuffer.cxx')
| -rw-r--r-- | src/CellBuffer.cxx | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 064ef1a2a..de1605837 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -351,10 +351,7 @@ void CellBuffer::GetCharRange(char *buffer, int position, int lengthRetrieve) co  		                      lengthRetrieve, substance.Length());  		return;  	} - -	for (int i=0; i<lengthRetrieve; i++) { -		*buffer++ = substance.ValueAt(position + i); -	} +	substance.GetRange(buffer, position, lengthRetrieve);  }  char CellBuffer::StyleAt(int position) const { | 
