From 8b5a3aae01f36d4151aee7c60f608ee57654730e Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Tue, 9 Aug 2011 22:41:19 +0800 Subject: [PATCH] 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. --- src/Emulation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Emulation.cpp b/src/Emulation.cpp index f86b53dea..b91a5a516 100644 --- a/src/Emulation.cpp +++ b/src/Emulation.cpp @@ -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