diff options
author | nyamatongwe <devnull@localhost> | 2013-05-08 18:50:12 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-08 18:50:12 +1000 |
commit | eefb45d1db944ef9ebeb1e30e3281dbe4d7e5218 (patch) | |
tree | d501a1471d1262f2c44b9484878c4151a41cb09d /lexers/LexCPP.cxx | |
parent | b7db33dd85ee178be818ed681be11e34f0a46ee1 (diff) | |
download | scintilla-mirror-eefb45d1db944ef9ebeb1e30e3281dbe4d7e5218.tar.gz |
Hide implementation of WordList.
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r-- | lexers/LexCPP.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 0e14eebdb..9b56641e6 100644 --- a/lexers/LexCPP.cxx +++ b/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); |