summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/astring.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-19 12:08:52 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-19 12:08:52 +0200
commit71c4d9f30460914a6823880e88e446799ecfe30f (patch)
tree4718c76a34a5aa2c160c381ab13cf1fa5cca99d7 /src/lib/util/astring.h
parent337342a4c650f38d286a3347b670fbc7ee2c343f (diff)
removed bool conversion and implicit empty check (nw)
Diffstat (limited to 'src/lib/util/astring.h')
-rw-r--r--src/lib/util/astring.h5
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);