remove all nulls
This commit is contained in:
parent
2be920c50e
commit
a0306fea8b
@ -83,7 +83,7 @@ void TextThread::Flush()
|
||||
for (auto& sentence : sentences)
|
||||
{
|
||||
totalSize += sentence.size();
|
||||
sentence.erase(std::remove(sentence.begin(), sentence.end(), L'\0'));
|
||||
sentence.erase(std::remove(sentence.begin(), sentence.end(), L'\0'), sentence.end());
|
||||
if (Output(*this, sentence)) storage->append(sentence);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user