mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
remove all nulls
This commit is contained in:
parent
2be920c50e
commit
a0306fea8b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user