aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-09-24 15:25:26 +1000
committernyamatongwe <unknown>2010-09-24 15:25:26 +1000
commit582af035f6bca12900c782340f006977fadcaa22 (patch)
treee29dd0e3cbd7f362537fdfa6e0d8ff751444c247 /src/CellBuffer.cxx
parent7fb06ca08a70dd9f9549b1e34c7dd38e9ca1413a (diff)
downloadscintilla-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.cxx5
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 {