summaryrefslogtreecommitdiffstats
path: root/scintilla/lexers/LexCPP.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scintilla/lexers/LexCPP.cxx')
-rw-r--r--scintilla/lexers/LexCPP.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/scintilla/lexers/LexCPP.cxx b/scintilla/lexers/LexCPP.cxx
index 2c00003..c367761 100644
--- a/scintilla/lexers/LexCPP.cxx
+++ b/scintilla/lexers/LexCPP.cxx
@@ -455,9 +455,9 @@ int SCI_METHOD LexerCPP::WordListSet(int n, const char *wl) {
if (n == 4) {
// Rebuild preprocessorDefinitions
preprocessorDefinitionsStart.clear();
- for (int nDefinition = 0; nDefinition < ppDefinitions.len; nDefinition++) {
- char *cpDefinition = ppDefinitions.words[nDefinition];
- char *cpEquals = strchr(cpDefinition, '=');
+ for (int nDefinition = 0; nDefinition < ppDefinitions.Length(); nDefinition++) {
+ const char *cpDefinition = ppDefinitions.WordAt(nDefinition);
+ const char *cpEquals = strchr(cpDefinition, '=');
if (cpEquals) {
std::string name(cpDefinition, cpEquals - cpDefinition);
std::string val(cpEquals+1);