diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-03 07:44:56 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-03 07:44:56 +1000 |
commit | 5e57df2146614bf2c344fcb4a5c54f08ec5f1add (patch) | |
tree | 034f560e9be8814f86d60924827dd3b607affb31 /lexlib/LexerBase.cxx | |
parent | a89c20b95b80e21061ed34289e043616221320fb (diff) | |
download | scintilla-mirror-5e57df2146614bf2c344fcb4a5c54f08ec5f1add.tar.gz |
Backport: Simplify PropSetSimple, avoid casts, use nullptr.
Backport of changeset 6788:e9f6386c89d4.
Diffstat (limited to 'lexlib/LexerBase.cxx')
-rw-r--r-- | lexlib/LexerBase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |