diff options
Diffstat (limited to 'src/lib/util/astring.h')
-rw-r--r-- | src/lib/util/astring.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/util/astring.h b/src/lib/util/astring.h index b17ae17076d..1988f73840d 100644 --- a/src/lib/util/astring.h +++ b/src/lib/util/astring.h @@ -65,8 +65,8 @@ public: char operator[](int index) const { return (index < len()) ? m_text[index] : 0; } // implicit boolean conversion operators - operator bool() { return m_text[0] != 0; } - operator bool() const { return m_text[0] != 0; } + //operator bool() { return m_text[0] != 0; } + //operator bool() const { return m_text[0] != 0; } // C string conversion operators and helpers const char *c_str() const { return m_text; } @@ -77,6 +77,7 @@ public: // length query int len() const { return m_len; } + bool empty() const { return m_len==0; } // copy helpers astring &cpy(const char *src, int count); |