From 0b95933be0c3ea9db3175e0bdd4b4837f49c9e3d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 8 Nov 2000 13:23:48 +0000 Subject: Changed bool operator on WordList to use len as words imay now be allocated but empty. --- 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 9766aa861..47f99a0d5 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -221,7 +221,7 @@ public: WordList(bool onlyLineEnds_ = false) : words(0), wordsNoCase(0), list(0), len(0), onlyLineEnds(onlyLineEnds_), sorted(false) {} ~WordList() { Clear(); } - operator bool() { return words ? true : false; } + operator bool() { return len ? true : false; } const char *operator[](int ind) { return words[ind]; } void Clear(); void Set(const char *s); -- cgit v1.2.3