remove all nulls

This commit is contained in:
Akash Mozumdar 2020-03-05 02:23:53 -07:00
parent 2be920c50e
commit a0306fea8b

View File

@ -83,7 +83,7 @@ void TextThread::Flush()
for (auto& sentence : sentences) for (auto& sentence : sentences)
{ {
totalSize += sentence.size(); 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); if (Output(*this, sentence)) storage->append(sentence);
} }