aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
diff options
context:
space:
mode:
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;
}
}
}