diff options
author | Neil <nyamatongwe@gmail.com> | 2017-05-10 14:15:16 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-05-10 14:15:16 +1000 |
commit | 789644c36be4220ae0920ec3bc60115a3a05b160 (patch) | |
tree | 8a6bcb68122a37b529665056cc9b346e50b192f6 /src/PositionCache.cxx | |
parent | 91c4a9ff07821dce93dab3ffd77df081893b723d (diff) | |
download | scintilla-mirror-789644c36be4220ae0920ec3bc60115a3a05b160.tar.gz |
Simplify DecorationList and its clients by using a vector instead of an
intrusive linked list. Restrict clients to a read-only view.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index b6e6c375c..2099046b8 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -470,7 +470,7 @@ BreakFinder::BreakFinder(const LineLayout *ll_, const Selection *psel, Range lin } } if (pvsDraw && pvsDraw->indicatorsSetFore) { - for (Decoration *deco = pdoc->decorations.Root(); deco; deco = deco->Next()) { + for (const Decoration *deco : pdoc->decorations.View()) { if (pvsDraw->indicators[deco->Indicator()].OverridesTextFore()) { Sci::Position startPos = deco->rs.EndRun(posLineStart); while (startPos < (posLineStart + lineRange.end)) { |