diff options
| author | 2010-08-22 12:36:56 +0000 | |
|---|---|---|
| committer | 2010-08-22 12:36:56 +0000 | |
| commit | 82c98dfa1bc15bb00b35b676cb9aff69a4719851 (patch) | |
| tree | 2ffe019b83bec5a1a02b6eb93b2d517b7ba7f64b /src/lib | |
| parent | ca59516c2fbcb92b0b19c9cd65fb89697618483e (diff) | |
Since previous fix made lot of issues, found better solution for this astring bool problem (no whatsnew)
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util/astring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/astring.h b/src/lib/util/astring.h index cb2f450e7fe..7ff236f7f0a 100644 --- a/src/lib/util/astring.h +++ b/src/lib/util/astring.h @@ -333,7 +333,7 @@ public: astring &reset() { return cpy(""); } astring &expand(int length) { astring_expand(this, length); return *this; } - operator char *() { return (this->text[0] != 0) ? this->text : NULL; } + operator bool() const { return this->text[0] != 0; } operator const char *() const { return astring_c(this); } const char *cstr() const { return astring_c(this); } int len() const { return astring_len(this); } |
