From e93a47975d317f59df0fdcca7cee95b6ab4ff33f Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 27 Mar 2018 19:35:55 +1100 Subject: Return a FillResult struct from RunStyles::FillRange instead of modifying arguments as that is clumsy when converting types. --- src/Decoration.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Decoration.cxx') 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 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 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) { -- cgit v1.2.3