this doesn't actually happen

master
Daniel Kolesa 2016-03-19 20:23:46 +00:00
parent a63cf1edb1
commit 6c4fd3d8ae
1 changed files with 0 additions and 4 deletions

View File

@ -866,10 +866,6 @@ public:
TempCString(CharRangeBase<const T> input, char *sbuf, Size bufsize)
: p_buf(nullptr), p_allocated(false) {
if (!input.size()) return;
if (input[input.size() - 1] == '\0') {
p_buf = (T *)input.data();
return;
}
if (input.size() >= bufsize) {
p_buf = new T[input.size() + 1];
p_allocated = true;