Change source file permissions to 0644
[platform/core/uifw/inputdelegator.git] / src / w-input-template.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 543709c..97bbbe2
@@ -49,9 +49,9 @@ static bool input_template_init_default(void);
 
 static void _input_template_db_vconf_changed(keynode_t *key, void *data)
 {
-       bool db_status = vconf_keynode_get_bool (key);
+       bool db_status = vconf_keynode_get_bool(key);
 
-       PRINTFUNC(DLOG_DEBUG,"starts :: db_status = %d", db_status);
+       PRINTFUNC(DLOG_DEBUG, "starts :: db_status = %d", db_status);
 
        if(db_status != 0)
                return;
@@ -137,7 +137,7 @@ static bool input_template_init_db_util(void)
                        "select sortId, itemId, checked, message from %s",
                        "tmpl_msg_table");
 
-       sqlite3_prepare_v2(g_tt_db, query, strlen(query), &stmt, NULL);
+       ret = sqlite3_prepare_v2(g_tt_db, query, strlen(query), &stmt, NULL);
 
        if (ret != SQLITE_OK) {
                PRINTFUNC(DLOG_ERROR, "Can not get query");
@@ -159,7 +159,7 @@ static bool input_template_init_db_util(void)
                        data.use_gettext = true;
 
                data.text = (char *)sqlite3_column_text(stmt, 3);
-               PRINTFUNC(DLOG_DEBUG, "db text %s", data.text.c_str());
+               SECURE_LOGD("db text %s", data.text.c_str());
                g_input_template.template_list.push_back(data);
 
                ret = sqlite3_step(stmt);
@@ -280,7 +280,6 @@ void input_template_set_notify(input_template_changed callback,
 
 void input_template_unset_notify(void)
 {
-
        g_input_template.callback = NULL;
        g_input_template.user_data = NULL;
 }