aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-07-19 10:42:50 +1000
committerNeil <nyamatongwe@gmail.com>2014-07-19 10:42:50 +1000
commitc995ec683d9fd296097740d3c60e833621f24f5b (patch)
treef30a62970c933a738fb398c08b44ab70ade3fce2 /src/Editor.cxx
parentca7b9e66fc519cae98fd0e8eac04f5e81ef6584c (diff)
downloadscintilla-mirror-c995ec683d9fd296097740d3c60e833621f24f5b.tar.gz
Using const for string argument to allow use with literals.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 3206c1912..2e966a4e5 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -88,7 +88,7 @@ Timer::Timer() :
Idler::Idler() :
state(false), idlerID(0) {}
-static inline bool IsAllSpacesOrTabs(char *s, unsigned int len) {
+static inline bool IsAllSpacesOrTabs(const char *s, unsigned int len) {
for (unsigned int i = 0; i < len; i++) {
// This is safe because IsSpaceOrTab() will return false for null terminators
if (!IsSpaceOrTab(s[i]))
@@ -1783,7 +1783,7 @@ static bool cmpSelPtrs(const SelectionRange *a, const SelectionRange *b) {
}
// AddCharUTF inserts an array of bytes which may or may not be in UTF-8.
-void Editor::AddCharUTF(char *s, unsigned int len, bool treatAsDBCS) {
+void Editor::AddCharUTF(const char *s, unsigned int len, bool treatAsDBCS) {
FilterSelections();
{
UndoGroup ug(pdoc, (sel.Count() > 1) || !sel.Empty() || inOverstrike);