diff --git a/src/dlangui/dml/tokenizer.d b/src/dlangui/dml/tokenizer.d index 4cb123f82..296420be2 100644 --- a/src/dlangui/dml/tokenizer.d +++ b/src/dlangui/dml/tokenizer.d @@ -101,7 +101,7 @@ class ParserException : Exception { /// simple tokenizer for DlangUI ML class Tokenizer { - protected string[] _singleLineCommentPrefixes = ["//"]; + protected string[] _singleLineCommentPrefixes; protected LineStream _lines; protected dchar[] _lineText; protected ushort _line; diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index 34468a93f..25fa650eb 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -415,7 +415,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction } /// Characters at which content is split for word wrap mode - dchar[] splitChars = [' ', '-', '\t']; + immutable dchar[] splitChars = [' ', '-', '\t']; /// Divides up a string for word wrapping, sets info in _span dstring[] wrapLine(dstring str, int lineNumber) { @@ -465,7 +465,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction } /// Divide (and conquer) text into words - dstring[] explode(dstring str, dchar[] splitChars) + dstring[] explode(dstring str, const(dchar)[] splitChars) { dstring[] parts; int startIndex = 0;