diff options
author | Neil <nyamatongwe@gmail.com> | 2018-03-27 19:35:55 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-03-27 19:35:55 +1100 |
commit | e93a47975d317f59df0fdcca7cee95b6ab4ff33f (patch) | |
tree | 852d09d665ca8cb76fa919805db7fcfa0028ea39 /src/Decoration.cxx | |
parent | fb9f493960b075b034b18d61036d36f384f2e3f8 (diff) | |
download | scintilla-mirror-e93a47975d317f59df0fdcca7cee95b6ab4ff33f.tar.gz |
Return a FillResult struct from RunStyles::FillRange instead of modifying
arguments as that is clumsy when converting types.
Diffstat (limited to 'src/Decoration.cxx')
-rw-r--r-- | src/Decoration.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Decoration.cxx b/src/Decoration.cxx index 5a653a589..0470f26f9 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -90,18 +90,18 @@ void DecorationList::SetCurrentValue(int value) { currentValue = value ? value : 1; } -bool DecorationList::FillRange(Sci::Position &position, int value, Sci::Position &fillLength) { +FillResult<Sci::Position> DecorationList::FillRange(Sci::Position position, int value, Sci::Position fillLength) { if (!current) { current = DecorationFromIndicator(currentIndicator); if (!current) { current = Create(currentIndicator, lengthDocument); } } - const bool changed = current->rs.FillRange(position, value, fillLength); + const FillResult<Sci::Position> fr = current->rs.FillRange(position, value, fillLength); if (current->Empty()) { Delete(currentIndicator); } - return changed; + return fr; } void DecorationList::InsertSpace(Sci::Position position, Sci::Position insertLength) { |