From 1bd855fab40bc8d97ddd1f5cc263f3e3e2c1e3cb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 27 May 2000 02:16:49 +0000 Subject: 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. --- include/PropSet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/PropSet.h') 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); -- cgit v1.2.3