From: Jihoon Kim Date: Fri, 27 Mar 2020 04:34:15 +0000 (+0900) Subject: Improve code for human readability X-Git-Tag: submit/tizen_5.5/20200330.104023~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5afe2482017b66ca67993cb4f7fb9be6b52b043;p=platform%2Fcore%2Fuifw%2Fcapi-ui-sticker.git Improve code for human readability Change-Id: I3ba1efb2012761a4d98928e2156bcaeba56b6cc7 Signed-off-by: Jihoon Kim --- diff --git a/receiver/src/ft.cpp b/receiver/src/ft.cpp index 1b03c03..a6cba2f 100644 --- a/receiver/src/ft.cpp +++ b/receiver/src/ft.cpp @@ -73,7 +73,7 @@ static struct sticker_info sticker_data; static queue ReqQueue; static StickerRequest current_request; -gboolean file_on_progress = 0; +static gboolean file_on_progress = FALSE; static string incoming_file_name; static int t_id = 0; static int rec_file_cnt_in_group = 0; @@ -212,7 +212,7 @@ static void _on_send_completed(sap_file_transaction_h file_transaction, } } - file_on_progress = 0; + file_on_progress = FALSE; sticker_data.reset(); } @@ -257,7 +257,7 @@ void accept_file() break; } - file_on_progress = 1; + file_on_progress = TRUE; } bool request_sticker_data(const char *mode, const char *category, const char *type) @@ -340,7 +340,7 @@ void reject_file() int ret = sap_file_transfer_reject(priv_data.file_socket); LOGI("ret : %d", ret); - file_on_progress = 0; + file_on_progress = FALSE; } static void _on_receive_file_cb(sap_peer_agent_h peer_agent_h, @@ -348,7 +348,7 @@ static void _on_receive_file_cb(sap_peer_agent_h peer_agent_h, const char *file_path, void *user_data) { - file_on_progress = 1; + file_on_progress = TRUE; priv_data.file_socket = socket; LOGI("# incoming file request."); __set_file_transfer_cb(priv_data.file_socket);