From e369aa61e697bfe1184198dfca30c47e4b2f0e75 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 6 Mar 2018 08:56:32 +0100 Subject: [PATCH] make astyle Signed-off-by: Gergely Nagy --- src/Kaleidoscope/Unicode.cpp | 42 +++++++++++++++++------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/src/Kaleidoscope/Unicode.cpp b/src/Kaleidoscope/Unicode.cpp index 17f0100f..81b723e4 100644 --- a/src/Kaleidoscope/Unicode.cpp +++ b/src/Kaleidoscope/Unicode.cpp @@ -102,8 +102,7 @@ void Unicode::typeCode(uint32_t unicode) { Key key; if (::HostOS.os() == hostos::WINDOWS) { key = hexToKeysWithNumpad(digit); - } - else { + } else { key = hexToKey(digit); } input(); @@ -117,8 +116,7 @@ void Unicode::typeCode(uint32_t unicode) { Key key; if (::HostOS.os() == hostos::WINDOWS) { key = hexToKeysWithNumpad(digit); - } - else { + } else { key = hexToKey(digit); } input(); @@ -163,24 +161,24 @@ __attribute__((weak)) Key hexToKeysWithNumpad(uint8_t hex) { m = Key_Keypad1.keyCode + (hex - 0x1); } else { switch (hex) { - case 0xA: - m = Key_A.keyCode; - break; - case 0xB: - m = Key_B.keyCode; - break; - case 0xC: - m = Key_C.keyCode; - break; - case 0xD: - m = Key_D.keyCode; - break; - case 0xE: - m = Key_E.keyCode; - break; - case 0xF: - m = Key_F.keyCode; - break; + case 0xA: + m = Key_A.keyCode; + break; + case 0xB: + m = Key_B.keyCode; + break; + case 0xC: + m = Key_C.keyCode; + break; + case 0xD: + m = Key_D.keyCode; + break; + case 0xE: + m = Key_E.keyCode; + break; + case 0xF: + m = Key_F.keyCode; + break; } } return { m, KEY_FLAGS };