aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-09 16:55:17 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-09 16:55:17 +1000
commitda34a05d99e324ffc3ca802ca9d65db2a4e7eac9 (patch)
treec0a586a232d664f3252e697fa98d840993490f3f /src/PerLine.cxx
parent1b763e30f00b6f03d506bf1e1fa0c6cb5264205e (diff)
downloadscintilla-mirror-da34a05d99e324ffc3ca802ca9d65db2a4e7eac9.tar.gz
Further use of range-for.
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r--src/PerLine.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index abe2230e6..f26b48b77 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -548,9 +548,9 @@ int LineTabstops::GetNextTabstop(Sci::Line line, int x) const {
if (line < tabstops.Length()) {
TabstopList *tl = tabstops[line];
if (tl) {
- for (size_t i = 0; i < tl->size(); i++) {
- if ((*tl)[i] > x) {
- return (*tl)[i];
+ for (const int i : *tl) {
+ if (i > x) {
+ return i;
}
}
}