mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
remove unneeded var
This commit is contained in:
parent
c7f119e0a2
commit
1e58842ca9
@ -17,7 +17,6 @@ TextThread::TextThread(ThreadParameter tp, unsigned int threadNumber, DWORD stat
|
|||||||
storage(),
|
storage(),
|
||||||
sentenceBuffer(),
|
sentenceBuffer(),
|
||||||
status(status),
|
status(status),
|
||||||
flushTimer(0),
|
|
||||||
threadNumber(threadNumber),
|
threadNumber(threadNumber),
|
||||||
output(nullptr),
|
output(nullptr),
|
||||||
tp(tp)
|
tp(tp)
|
||||||
@ -28,7 +27,7 @@ TextThread::TextThread(ThreadParameter tp, unsigned int threadNumber, DWORD stat
|
|||||||
TextThread::~TextThread()
|
TextThread::~TextThread()
|
||||||
{
|
{
|
||||||
EnterCriticalSection(&ttCs);
|
EnterCriticalSection(&ttCs);
|
||||||
KillTimer(dummyWindow, flushTimer);
|
KillTimer(dummyWindow, (UINT_PTR)this);
|
||||||
LeaveCriticalSection(&ttCs);
|
LeaveCriticalSection(&ttCs);
|
||||||
DeleteCriticalSection(&ttCs);
|
DeleteCriticalSection(&ttCs);
|
||||||
}
|
}
|
||||||
@ -82,7 +81,7 @@ void TextThread::AddText(const BYTE *con, int len)
|
|||||||
{
|
{
|
||||||
TT_LOCK;
|
TT_LOCK;
|
||||||
sentenceBuffer.insert(sentenceBuffer.end(), con, con + len);
|
sentenceBuffer.insert(sentenceBuffer.end(), con, con + len);
|
||||||
flushTimer = SetTimer(dummyWindow, (UINT_PTR)this, 250, // TODO: Let user change delay before sentenceBuffer is flushed
|
SetTimer(dummyWindow, (UINT_PTR)this, 250, // TODO: Let user change delay before sentenceBuffer is flushed
|
||||||
[](HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
|
[](HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
|
||||||
{
|
{
|
||||||
KillTimer(hWnd, idEvent);
|
KillTimer(hWnd, idEvent);
|
||||||
|
@ -54,7 +54,6 @@ private:
|
|||||||
ThreadParameter tp;
|
ThreadParameter tp;
|
||||||
unsigned int threadNumber;
|
unsigned int threadNumber;
|
||||||
DWORD status;
|
DWORD status;
|
||||||
unsigned int flushTimer;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// EOF
|
// EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user