From 5e57df2146614bf2c344fcb4a5c54f08ec5f1add Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 3 May 2018 07:44:56 +1000 Subject: Backport: Simplify PropSetSimple, avoid casts, use nullptr. Backport of changeset 6788:e9f6386c89d4. --- lexlib/LexerBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib/LexerBase.cxx') diff --git a/lexlib/LexerBase.cxx b/lexlib/LexerBase.cxx index 4b0b0bb06..7b01beff4 100644 --- a/lexlib/LexerBase.cxx +++ b/lexlib/LexerBase.cxx @@ -62,7 +62,7 @@ const char * SCI_METHOD LexerBase::DescribeProperty(const char *) { Sci_Position SCI_METHOD LexerBase::PropertySet(const char *key, const char *val) { const char *valOld = props.Get(key); if (strcmp(val, valOld) != 0) { - props.Set(key, val); + props.Set(key, val, strlen(key), strlen(val)); return 0; } else { return -1; -- cgit v1.2.3