fix indentation 88/17688/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 29 Oct 2013 05:07:30 +0000 (14:07 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 7 Mar 2014 11:27:33 +0000 (20:27 +0900)
Change-Id: Ib1be5345aea0408dc4649ba55947150ff01d1a11

ism/extras/efl_panel/isf_panel_efl.cpp

index f875c739b476f6f958c7514244e48c30aa2513b6..c4778e904f21b1bb1eb76baa06a3c9cc3bf1a459 100644 (file)
@@ -4596,7 +4596,6 @@ static int scim_get_osp_module_list (std::vector <String> &ops_module_names)
                 ops_module_names.push_back (link_name.substr (0, link_name.find_last_of ('.')));
             }
 
-
             file = readdir (dir);
         }
         closedir (dir);
@@ -4604,6 +4603,7 @@ static int scim_get_osp_module_list (std::vector <String> &ops_module_names)
 
     std::sort (ops_module_names.begin (), ops_module_names.end ());
     ops_module_names.erase (std::unique (ops_module_names.begin (), ops_module_names.end ()), ops_module_names.end ());
+
     return ops_module_names.size ();
 }
 
@@ -4613,19 +4613,15 @@ static void osp_engine_dir_monitor_cb (void *data, Ecore_File_Monitor *em, Ecore
     char *osp_module_name = (char *)data;
 
     String rpath = String ("/opt/apps/") + String (osp_module_name).substr (0, String (osp_module_name).find_first_of ('.'));
-    String osp_ime_name = String (osp_module_name).substr (String (osp_module_name).find_first_of('.') + 1, String (osp_module_name).find_last_of('.'));
+    String osp_ime_name = String (osp_module_name).substr (String (osp_module_name).find_first_of ('.') + 1, String (osp_module_name).find_last_of ('.'));
     String exe_path =  rpath + String ("/bin/") + osp_ime_name + String (".exe");
 
-
     if (event == ECORE_FILE_EVENT_CLOSED) {
         if (String (path) == exe_path) {
-            LOGD("%s", ecore_file_monitor_path_get (em));
-            LOGD("%s", osp_module_name);
+            LOGD ("%s", ecore_file_monitor_path_get (em));
+            LOGD ("%s", osp_module_name);
         }
     }
-
-
-    return;
 }
 
 static void osp_info_dir_monitor_cb (void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const char *path)
@@ -4639,32 +4635,29 @@ static void osp_info_dir_monitor_cb (void *data, Ecore_File_Monitor *em, Ecore_F
 
     if (event == ECORE_FILE_EVENT_CLOSED) {
         if (String (path) == manifest_path) {
-            LOGD("%s", ecore_file_monitor_path_get (em));
-            LOGD("%s", osp_module_name);
+            LOGD ("%s", ecore_file_monitor_path_get (em));
+            LOGD ("%s", osp_module_name);
         }
     }
-
-
-    return;
 }
 
 /**
  * @brief : add monitor for engine file and info file update of 3rd party's IMEs
  */
-static void add_monitor_for_osp_modules()
+static void add_monitor_for_osp_modules ()
 {
     LOGD ("");
     std::vector<String> osp_module_list;
     scim_get_osp_module_list (osp_module_list);
 
-    if (osp_module_list.size() > 0) {
-        for (unsigned int i = 0; i < osp_module_list.size(); i ++) {
-            LOGD ("%s", osp_module_list[i].c_str());
+    if (osp_module_list.size () > 0) {
+        for (unsigned int i = 0; i < osp_module_list.size (); i++) {
+            LOGD ("%s", osp_module_list[i].c_str ());
             String rpath = String ("/opt/apps/") + osp_module_list[i].substr (0, osp_module_list[i].find_first_of ('.'));
             String exe_path =  rpath + String ("/bin");
             String manifest_path = rpath + String ("/info");
-            ecore_file_monitor_add (exe_path.c_str (), osp_engine_dir_monitor_cb, (void *)(strdup(osp_module_list[i].c_str())));
-            ecore_file_monitor_add (manifest_path.c_str (), osp_info_dir_monitor_cb, (void *)(strdup (osp_module_list[i].c_str())));
+            ecore_file_monitor_add (exe_path.c_str (), osp_engine_dir_monitor_cb, (void *)(strdup (osp_module_list[i].c_str ())));
+            ecore_file_monitor_add (manifest_path.c_str (), osp_info_dir_monitor_cb, (void *)(strdup (osp_module_list[i].c_str ())));
         }
     }
 }