diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2016-03-17 10:08:12 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2016-03-17 10:08:12 +0900 |
commit | deedbb92c4ec81e26c030ed7dd0f87a9d9e36a2d (patch) | |
tree | 17f69130933007901894b8a638e0bdeb97ccf633 /src | |
parent | 416fbe36097085898341e510ec164ce34bf1cabf (diff) | |
download | ise-engine-default-deedbb92c4ec81e26c030ed7dd0f87a9d9e36a2d.tar.gz ise-engine-default-deedbb92c4ec81e26c030ed7dd0f87a9d9e36a2d.tar.bz2 ise-engine-default-deedbb92c4ec81e26c030ed7dd0f87a9d9e36a2d.zip |
Fix coding style
./src/isf_default_imengine.h:248: [SPC_M_SEP]Extra space before ( in function call [whitespace/parens] [4]
./src/isf_default_imengine.h:251: Do not leave a blank line after "private:" [whitespace/blank_line] [3]
./src/isf_default_imengine.cpp:45: [SPC_M_SEP]Missing space after , [whitespace/comma] [3]
./src/isf_default_imengine.cpp:50: [SPC_M_SEP]Missing space after , [whitespace/comma] [3]
./src/isf_default_imengine.cpp:52: [SPC_M_SEP]Missing space after , [whitespace/comma] [3]
./src/isf_default_imengine.cpp:162: [SPC_M_SEP]Extra space before ( in function call [whitespace/parens] [4]
./src/isf_default_imengine.cpp:284: [SPC_M_SEP]Missing space after , [whitespace/comma] [3]
./src/isf_default_imengine.cpp:318: [LNE_R_TWS]Redundant blank line at the start of a code block should be deleted. [whitespace/blank_line] [2]
./src/isf_default_imengine.cpp:326: [SPC_M_SEP]Extra space before ( in function call [whitespace/parens] [4]
Change-Id: Ied6acbf1d274194480eca89e9f4be046ea66fae4
Diffstat (limited to 'src')
-rw-r--r-- | src/isf_default_imengine.cpp | 40 | ||||
-rw-r--r-- | src/isf_default_imengine.h | 3 |
2 files changed, 23 insertions, 20 deletions
diff --git a/src/isf_default_imengine.cpp b/src/isf_default_imengine.cpp index 7d4d613..a2fb896 100644 --- a/src/isf_default_imengine.cpp +++ b/src/isf_default_imengine.cpp @@ -42,14 +42,14 @@ #ifdef HAVE_GETTEXT #include <libintl.h> -#define _(String) dgettext(GETTEXT_PACKAGE,String) +#define _(String) dgettext(GETTEXT_PACKAGE, String) #define N_(String) (String) #else #define _(String) (String) #define N_(String) (String) -#define bindtextdomain(Package,Directory) +#define bindtextdomain(Package, Directory) #define textdomain(domain) -#define bind_textdomain_codeset(domain,codeset) +#define bind_textdomain_codeset(domain, codeset) #endif #define DEFAULT_UUID "org.tizen.ise-engine-default" @@ -159,7 +159,7 @@ String DefaultFactory::get_icon_file() const { void DefaultFactory::reload_config(const ConfigPointer & config) { if (config.null()) return; - int hw_detected = config->read(String (ISF_CONFIG_HARDWARE_KEYBOARD_DETECT), 1); + int hw_detected = config->read(String(ISF_CONFIG_HARDWARE_KEYBOARD_DETECT), 1); if (hw_detected == 1) m_keypad_layout = I_HQD; } @@ -281,7 +281,7 @@ bool DefaultInstance::_process_keypress(const KeyEvent & key_raw) { } bool DefaultInstance::keypad_process_qwerty(KeyEvent & key) { - unsigned char buf[UTF8_SIZE + 1] = {0,}; + unsigned char buf[UTF8_SIZE + 1] = {0, }; /* in case of Alphabet chars */ if (key.code >= 0xfd00) @@ -309,19 +309,23 @@ void DefaultInstance::process_helper_event(const String & helper_uuid, if (!(const_cast < Transaction & >(trans)).get_command(cmd)) return; if (!(const_cast < Transaction & >(trans)).get_data(value)) return; - if (DEFAULT_CMD_LANGUAGE == cmd) { - m_lang = value; - if (m_lang >= IM_LANGUAGE_CNT) { - m_lang = IM_LANGUAGE_ENGLISH; - } - } else if (DEFAULT_CMD_COMPLETION == cmd) { - - } else if (DEFAULT_CMD_SHIFTMODE == cmd) { - m_shift_pressed = (Mode_Shift)value; - } else if (DEFAULT_CMD_KEYPAD == cmd) { - m_keypad_layout = value; - } + switch (cmd) { + case DEFAULT_CMD_LANGUAGE: + m_lang = value; + if (m_lang >= IM_LANGUAGE_CNT) { + m_lang = IM_LANGUAGE_ENGLISH; + } + break; + case DEFAULT_CMD_SHIFTMODE: + m_shift_pressed = (Mode_Shift)value; + break; + case DEFAULT_CMD_KEYPAD: + m_keypad_layout = value; + break; + default: + break; + } } -void DefaultInstance::reset_option () { +void DefaultInstance::reset_option() { } diff --git a/src/isf_default_imengine.h b/src/isf_default_imengine.h index 485c3ae..34f46d5 100644 --- a/src/isf_default_imengine.h +++ b/src/isf_default_imengine.h @@ -245,10 +245,9 @@ class DefaultInstance:public IMEngineInstanceBase { /** * @brief invoke by setting. */ - virtual void reset_option (); + virtual void reset_option(); private: - /** * @brief Process a key release event. * |