diff options
Diffstat (limited to 'src/util/AllocatedString.hxx')
-rw-r--r-- | src/util/AllocatedString.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx index 3c9a7b9b9..2a5aaa02d 100644 --- a/src/util/AllocatedString.hxx +++ b/src/util/AllocatedString.hxx @@ -55,12 +55,13 @@ public: static constexpr value_type SENTINEL = '\0'; private: - pointer value; + pointer value = nullptr; explicit BasicAllocatedString(pointer _value) noexcept :value(_value) {} public: + BasicAllocatedString() noexcept = default; BasicAllocatedString(std::nullptr_t n) noexcept :value(n) {} @@ -145,6 +146,7 @@ class AllocatedString : public BasicAllocatedString<char> { public: using BasicAllocatedString::BasicAllocatedString; + AllocatedString() noexcept = default; AllocatedString(BasicAllocatedString<value_type> &&src) noexcept :BasicAllocatedString(std::move(src)) {} }; |