aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/AllocatedString.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/AllocatedString.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx
index dbc0abfc0..97975f8b8 100644
--- a/src/util/AllocatedString.hxx
+++ b/src/util/AllocatedString.hxx
@@ -89,6 +89,10 @@ public:
return value;
}
+ bool empty() const {
+ return *value == 0;
+ }
+
pointer Steal() {
pointer result = value;
value = nullptr;