From 2619a079faaea132825e47eca37c98bf7cbbe0a1 Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Fri, 26 Aug 2011 19:16:42 +0800 Subject: [PATCH] Make Emulaion::receiveChar() slightly more readable. --- src/Emulation.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Emulation.cpp b/src/Emulation.cpp index f0803c0e9..bd324d5aa 100644 --- a/src/Emulation.cpp +++ b/src/Emulation.cpp @@ -176,9 +176,9 @@ QString Emulation::keyBindings() const return _keyTranslator->name(); } -void Emulation::receiveChar(int c) // process application unicode input to terminal // this is a trivial scanner +void Emulation::receiveChar(int c) { c &= 0xff; switch (c) @@ -187,8 +187,7 @@ void Emulation::receiveChar(int c) case '\t' : _currentScreen->tab(); break; case '\n' : _currentScreen->newLine(); break; case '\r' : _currentScreen->toStartOfLine(); break; - case 0x07 : emit stateSet(NOTIFYBELL); - break; + case 0x07 : emit stateSet(NOTIFYBELL); break; default : _currentScreen->displayCharacter(c); break; }; }