Refactor: rename lastWriteTick field to m_lastWriteTick

This commit is contained in:
Ryan Prichard 2015-12-15 00:11:26 -06:00
parent 3ad4dc4530
commit 2ca31b4de0
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ ConsoleInput::ConsoleInput(DsrSender *dsrSender) :
m_console(new Win32Console),
m_dsrSender(dsrSender),
m_dsrSent(false),
lastWriteTick(0)
m_lastWriteTick(0)
{
addDefaultEntriesToInputMap(m_inputMap);
if (hasDebugFlag("dump_input_map")) {
@ -96,13 +96,13 @@ void ConsoleInput::writeInput(const std::string &input)
m_dsrSender->sendDsr();
m_dsrSent = true;
}
lastWriteTick = GetTickCount();
m_lastWriteTick = GetTickCount();
}
void ConsoleInput::flushIncompleteEscapeCode()
{
if (!m_byteQueue.empty() &&
(int)(GetTickCount() - lastWriteTick) > kIncompleteEscapeTimeoutMs) {
(int)(GetTickCount() - m_lastWriteTick) > kIncompleteEscapeTimeoutMs) {
doWrite(true);
m_byteQueue.clear();
}

View File

@ -68,7 +68,7 @@ private:
bool m_dsrSent;
std::string m_byteQueue;
InputMap m_inputMap;
DWORD lastWriteTick;
DWORD m_lastWriteTick;
};
#endif // CONSOLEINPUT_H