diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-09 16:55:17 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-09 16:55:17 +1000 |
commit | da34a05d99e324ffc3ca802ca9d65db2a4e7eac9 (patch) | |
tree | c0a586a232d664f3252e697fa98d840993490f3f /src/PerLine.cxx | |
parent | 1b763e30f00b6f03d506bf1e1fa0c6cb5264205e (diff) | |
download | scintilla-mirror-da34a05d99e324ffc3ca802ca9d65db2a4e7eac9.tar.gz |
Further use of range-for.
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r-- | src/PerLine.cxx | 6 |
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; } } } |