aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-09-24 15:25:26 +1000
committernyamatongwe <devnull@localhost>2010-09-24 15:25:26 +1000
commitb458c22e5421f4d0fd23cdf14c072d132a820937 (patch)
treeaeb0fa1003068edab5071cfeec8e88ca5e3c5ba5 /src/CellBuffer.cxx
parent27fe93c781719be46a2ca770f33f9cfba9cb054c (diff)
downloadscintilla-mirror-b458c22e5421f4d0fd23cdf14c072d132a820937.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 {