mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
remove unneeded code
This commit is contained in:
parent
878e4b443f
commit
50c488f109
@ -37,7 +37,6 @@ void TextThread::Flush()
|
||||
sentence = std::wstring(converted, MultiByteToWideChar(status & USING_UTF8 ? CP_UTF8 : 932, 0, buffer.data(), buffer.size(), converted, buffer.size()));
|
||||
delete[] converted;
|
||||
}
|
||||
memset(buffer.data(), 0, buffer.size());
|
||||
buffer.clear();
|
||||
}
|
||||
AddSentence(sentence);
|
||||
|
@ -74,7 +74,7 @@ bool ProcessSentence(std::wstring& sentence, const InfoForExtension* miscInfo)
|
||||
if (buffer[0] == '[')
|
||||
{
|
||||
wchar_t wbuffer[10000] = {};
|
||||
MultiByteToWideChar(CP_UTF8, 0, (char*)buffer, -1, wbuffer, 10000);
|
||||
MultiByteToWideChar(CP_UTF8, 0, buffer, -1, wbuffer, 10000);
|
||||
std::wstring response(wbuffer);
|
||||
std::wregex translationFinder(L"\\[\"(.*?)\",[n\"]");
|
||||
std::wsmatch results;
|
||||
|
Loading…
x
Reference in New Issue
Block a user