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 | f965f5ecb21353b1a6be784c20cd36ffffc416c0 (patch) | |
tree | 3bdf61baf61b36f236d96bd09dddece39b1ca9e5 /src/Editor.cxx | |
parent | e4f5fb2eda66d4d8dfc39c3d5b9ddabcb36ce122 (diff) | |
download | scintilla-mirror-f965f5ecb21353b1a6be784c20cd36ffffc416c0.tar.gz |
Feature [feature-requests:#1215]. Make a parameter const.
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 730c47d00..848241941 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'); |