aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Decoration.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-03-27 19:35:55 +1100
committerNeil <nyamatongwe@gmail.com>2018-03-27 19:35:55 +1100
commite93a47975d317f59df0fdcca7cee95b6ab4ff33f (patch)
tree852d09d665ca8cb76fa919805db7fcfa0028ea39 /src/Decoration.cxx
parentfb9f493960b075b034b18d61036d36f384f2e3f8 (diff)
downloadscintilla-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.cxx6
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) {