diff --git a/extensions/translatewrapper.cpp b/extensions/translatewrapper.cpp index 9631dc2..8678650 100644 --- a/extensions/translatewrapper.cpp +++ b/extensions/translatewrapper.cpp @@ -185,7 +185,7 @@ bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo) if (useFilter) { Trim(sentence); - sentence.erase(std::find_if(sentence.begin(), sentence.end(), [](wchar_t ch) { return ch < ' ' && ch != '\n'; }), sentence.end()); + sentence.erase(std::remove_if(sentence.begin(), sentence.end(), [](wchar_t ch) { return ch < ' ' && ch != '\n'; }), sentence.end()); } if (useCache) {