From 2366576d5190071247848b940d65bb9bad6c3a3b Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 24 Apr 2018 16:41:42 +1000 Subject: Backport: Feature [feature-requests:#1215]. Make a parameter const. Backport of changeset 6733:f6be8941c4b8. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index fa26b29bb..c859c4e55 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5573,7 +5573,7 @@ Sci::Line Editor::WrapCount(Sci::Line line) { } } -void Editor::AddStyledText(char *buffer, Sci::Position appendLength) { +void Editor::AddStyledText(const char *buffer, Sci::Position appendLength) { // The buffer consists of alternating character bytes and style bytes const Sci::Position textLength = appendLength / 2; std::string text(textLength, '\0'); -- cgit v1.2.3