From da34a05d99e324ffc3ca802ca9d65db2a4e7eac9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 9 Apr 2017 16:55:17 +1000 Subject: Further use of range-for. --- src/PerLine.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PerLine.cxx') 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; } } } -- cgit v1.2.3