Not a good idea to reuse the name of member variable for parameter.

The old code is syntactially correct and works as expected, but it is
confusing at first glance.
This commit is contained in:
Jekyll Wu
2011-08-09 22:41:19 +08:00
parent c1c0bb35b7
commit 8b5a3aae01

View File

@@ -293,11 +293,11 @@ void Emulation::receiveData(const char* text, int length)
}
}*/
void Emulation::writeToStream( TerminalCharacterDecoder* _decoder ,
void Emulation::writeToStream( TerminalCharacterDecoder* decoder ,
int startLine ,
int endLine)
{
_currentScreen->writeLinesToStream(_decoder,startLine,endLine);
_currentScreen->writeLinesToStream(decoder,startLine,endLine);
}
int Emulation::lineCount() const