aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/PropSet.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-05-27 02:16:49 +0000
committernyamatongwe <unknown>2000-05-27 02:16:49 +0000
commit2f0d3718f7d4af752b10fc586507c2b1c25f6ffe (patch)
tree45ee1f8c8d83133fdce122b35674bb86bf507ecb /include/PropSet.h
parentd78209cfaac6af11a56e460aa264ec38e4607c99 (diff)
downloadscintilla-mirror-2f0d3718f7d4af752b10fc586507c2b1c25f6ffe.tar.gz
Changed operator bool in WordList to return false if WordList is empty.
Many lexer changes from Philippe Lhoste. VB handles preprocessor and hex constants. C++ optionally leaves preprocessor state after the preprocessor command. HTML terminates incomplete entities earlier and marks them as bad attributes.
Diffstat (limited to 'include/PropSet.h')
-rw-r--r--include/PropSet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/PropSet.h b/include/PropSet.h
index bc1599f38..2326ba5c4 100644
--- a/include/PropSet.h
+++ b/include/PropSet.h
@@ -168,7 +168,7 @@ public:
WordList(bool onlyLineEnds_ = false) :
words(0), list(0), len(0), onlyLineEnds(onlyLineEnds_) {}
~WordList() { Clear(); }
- operator bool() { return list ? true : false; }
+ operator bool() { return (list && list[0]) ? true : false; }
const char *operator[](int ind) { return words[ind]; }
void Clear();
void Set(const char *s);