aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-11-08 13:23:48 +0000
committernyamatongwe <devnull@localhost>2000-11-08 13:23:48 +0000
commit0b95933be0c3ea9db3175e0bdd4b4837f49c9e3d (patch)
treee5463d13001a6e9c1e6d6cf023ace3b1b2764bb6
parent6fc5151e4fdd7b1f3bc232f5c0ce405aabae1ea4 (diff)
downloadscintilla-mirror-0b95933be0c3ea9db3175e0bdd4b4837f49c9e3d.tar.gz
Changed bool operator on WordList to use len as words imay now be allocated
but empty.
-rw-r--r--include/PropSet.h2
1 files changed, 1 insertions, 1 deletions
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);