From 4fee1c0972ef24589e6d872b5cf4ad91f192d8d8 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 08:03:19 +1000 Subject: Backport: Add some const, constexpr. Backport of changeset 8407:dfaa642a6c22. --- src/Document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index a9daf9339..eb8d764a3 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2402,7 +2402,7 @@ StyledText Document::EOLAnnotationStyledText(Sci::Line line) const noexcept { void Document::EOLAnnotationSetText(Sci::Line line, const char *text) { if (line >= 0 && line < LinesTotal()) { EOLAnnotations()->SetText(line, text); - DocModification mh(SC_MOD_CHANGEEOLANNOTATION, LineStart(line), + const DocModification mh(SC_MOD_CHANGEEOLANNOTATION, LineStart(line), 0, 0, 0, line); NotifyModified(mh); } -- cgit v1.2.3