string clear check
This commit is contained in:
parent
4f23017594
commit
8ba91c12fe
|
@ -331,6 +331,7 @@ public:
|
|||
}
|
||||
|
||||
void clear() {
|
||||
if (!p_len) return;
|
||||
p_len = 0;
|
||||
*p_buf.first() = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue