aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexerBase.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-03 07:44:56 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-03 07:44:56 +1000
commit9aa2dfc9a366df851d1eea05a58d5e171adcb8fd (patch)
tree790b0c7cdd5666b85454232f7731202102acaf5f /lexlib/LexerBase.cxx
parent9ffdbac7f017c64ddb7133268b45a8a992389591 (diff)
downloadscintilla-mirror-9aa2dfc9a366df851d1eea05a58d5e171adcb8fd.tar.gz
Simplify PropSetSimple, avoid casts, use nullptr.
Diffstat (limited to 'lexlib/LexerBase.cxx')
-rw-r--r--lexlib/LexerBase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/LexerBase.cxx b/lexlib/LexerBase.cxx
index 80558504f..f9e6292a1 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;