diff options
Diffstat (limited to 'src/util/AllocatedString.hxx')
-rw-r--r-- | src/util/AllocatedString.hxx | 4 |
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; |