From d601bd735ac428e89f278d0745ff35f3a73e9d4f Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Sun, 6 Nov 2011 02:42:52 +0800 Subject: [PATCH] Change some global variables into static variables within method --- src/Emulation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Emulation.cpp b/src/Emulation.cpp index dc2010348..4360ee29e 100644 --- a/src/Emulation.cpp +++ b/src/Emulation.cpp @@ -325,8 +325,6 @@ int Emulation::lineCount() const return _currentScreen->getLines() + _currentScreen->getHistLines(); } -const int BULK_TIMEOUT1 = 10; -const int BULK_TIMEOUT2 = 40; void Emulation::showBulk() { @@ -341,6 +339,9 @@ void Emulation::showBulk() void Emulation::bufferedUpdate() { + static const int BULK_TIMEOUT1 = 10; + static const int BULK_TIMEOUT2 = 40; + _bulkTimer1.setSingleShot(true); _bulkTimer1.start(BULK_TIMEOUT1); if (!_bulkTimer2.isActive())