diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-24 16:41:42 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-24 16:41:42 +1000 |
| commit | 2366576d5190071247848b940d65bb9bad6c3a3b (patch) | |
| tree | ee291df03656dc20cb0c6f53840dca73b480a7f5 /src/Editor.cxx | |
| parent | 3a683d8e5f35fc86056a531ce68034ee700c2f6b (diff) | |
| download | scintilla-mirror-2366576d5190071247848b940d65bb9bad6c3a3b.tar.gz | |
Backport: Feature [feature-requests:#1215]. Make a parameter const.
Backport of changeset 6733:f6be8941c4b8.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |
