This commit is contained in:
momo5502 2022-05-30 21:10:08 +02:00
parent d9b834bede
commit f5f9dae447

View File

@ -45,9 +45,7 @@ namespace utils::string
class entry final class entry final
{ {
public: public:
entry() = default; entry(const size_t _size = MinBufferSize) : size(_size), buffer(nullptr)
explicit entry(const size_t _size = MinBufferSize) : size(_size), buffer(nullptr)
{ {
if (this->size < MinBufferSize) this->size = MinBufferSize; if (this->size < MinBufferSize) this->size = MinBufferSize;
this->allocate(); this->allocate();