Simplify the code regarding autocaptial 60/118660/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 13 Mar 2017 12:16:58 +0000 (21:16 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 14 Mar 2017 06:09:35 +0000 (23:09 -0700)
Change-Id: Ic6288f9432714ffeb26abe34954ba37ff650d96d
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/extras/wayland_immodule/wayland_imcontext.c

index fca71848ff54095f3b13a404a10f173ebe05d21e..74789126c5058efd06e1c97310d5b9b70caa1096 100644 (file)
@@ -542,11 +542,7 @@ set_autocapital (Ecore_IMF_Context *ctx)
         if (autocap_allow == EINA_FALSE)
             return;
 
-        if (analyze_surrounding_text (ctx)) {
-            uppercase = EINA_TRUE;
-        } else {
-            uppercase = EINA_FALSE;
-        }
+        uppercase = analyze_surrounding_text (ctx);
     }
 
     SECURE_LOGD ("ctx : %p, auto capital : %d\n", ctx, uppercase);