From 1f9c249665ccbd458237d439f11a7f14a85b34b2 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 19 Jul 2014 10:42:50 +1000 Subject: Using const for string argument to allow use with literals. --- src/Editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index be89bfd3a..f36cb9b99 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -386,7 +386,7 @@ protected: // ScintillaBase subclass needs access to much of Editor void FilterSelections(); int InsertSpace(int position, unsigned int spaces); void AddChar(char ch); - virtual void AddCharUTF(char *s, unsigned int len, bool treatAsDBCS=false); + virtual void AddCharUTF(const char *s, unsigned int len, bool treatAsDBCS=false); void InsertPaste(const char *text, int len); enum PasteShape { pasteStream=0, pasteRectangular = 1, pasteLine = 2 }; void InsertPasteShape(const char *text, int len, PasteShape shape); -- cgit v1.2.3