From: Jihoon Kim Date: Wed, 14 Feb 2018 02:49:54 +0000 (+0900) Subject: Fix coding style X-Git-Tag: accepted/tizen/unified/20180220.064133~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e26aa035dc71df196aa1cb106c390e5145dbc6bb;p=platform%2Fcore%2Fuifw%2Fise-default.git Fix coding style Change-Id: Iaa62a40a91e2c4b1a47f0245e5b9ff521d140b04 Signed-off-by: Jihoon Kim --- diff --git a/src/SttManager.cpp b/src/SttManager.cpp index a5345d9..50e3135 100644 --- a/src/SttManager.cpp +++ b/src/SttManager.cpp @@ -188,7 +188,6 @@ void SttManager::Cancel() { ifeedback.SttIdle(); } - bool SttManager::Validate(int state) { stt_state_e cur; @@ -205,16 +204,16 @@ bool SttManager::Validate(int state) { cur == STT_STATE_PROCESSING ? "STT_STATE_PROCESSING" : "ABNORMAL"); switch (cur) { - case STT_STATE_CREATED : + case STT_STATE_CREATED: if (state & CREATE) return true; break; - case STT_STATE_READY : + case STT_STATE_READY: if (state & READY) return true; break; - case STT_STATE_RECORDING : + case STT_STATE_RECORDING: if (state & RECORDING) return true; break; - case STT_STATE_PROCESSING : + case STT_STATE_PROCESSING: if (state & PROCESSING) return true; break; default : @@ -233,16 +232,16 @@ void SttManager::PrintResultState(stt_result_event_e result_type) std::string result; switch (result_type) { - case STT_RESULT_EVENT_FINAL_RESULT : + case STT_RESULT_EVENT_FINAL_RESULT: result = "STT_RESULT_EVENT_FINAL_RESULT"; break; - case STT_RESULT_EVENT_PARTIAL_RESULT : + case STT_RESULT_EVENT_PARTIAL_RESULT: result = "STT_RESULT_EVENT_PARTIAL_RESULT"; break; - case STT_RESULT_EVENT_ERROR : + case STT_RESULT_EVENT_ERROR: result = "STT_RESULT_EVENT_ERROR"; break; - default : + default: result = "UNKNOWN"; break; } @@ -287,37 +286,37 @@ void SttManager::PrintState(stt_state_e previous, stt_state_e current) std::string curr; switch (previous) { - case STT_STATE_READY : + case STT_STATE_READY: prev = "STT_STATE_READY"; break; - case STT_STATE_CREATED : + case STT_STATE_CREATED: prev = "STT_STATE_CREATED"; break; - case STT_STATE_RECORDING : + case STT_STATE_RECORDING: prev = "STT_STATE_RECORDING"; break; - case STT_STATE_PROCESSING : + case STT_STATE_PROCESSING: prev = "STT_STATE_PROCESSING"; break; - default : + default: prev = "UNKNOWN"; break; } switch (current) { - case STT_STATE_READY : + case STT_STATE_READY: curr = "STT_STATE_READY"; break; - case STT_STATE_CREATED : + case STT_STATE_CREATED: curr = "STT_STATE_CREATED"; break; - case STT_STATE_RECORDING : + case STT_STATE_RECORDING: curr = "STT_STATE_RECORDING"; break; - case STT_STATE_PROCESSING : + case STT_STATE_PROCESSING: curr = "STT_STATE_PROCESSING"; break; - default : + default: curr = "UNKNOWN"; break; } @@ -374,46 +373,46 @@ void SttManager::PrintErrorState(stt_error_e reason) std::string res; switch (reason) { - case STT_ERROR_OUT_OF_MEMORY : + case STT_ERROR_OUT_OF_MEMORY: res = "STT_ERROR_OUT_OF_MEMORY"; break; - case STT_ERROR_IO_ERROR : + case STT_ERROR_IO_ERROR: res = "STT_ERROR_IO_ERROR"; break; - case STT_ERROR_INVALID_PARAMETER : + case STT_ERROR_INVALID_PARAMETER: res = "STT_ERROR_INVALID_PARAMETER"; break; - case STT_ERROR_TIMED_OUT : + case STT_ERROR_TIMED_OUT: res = "STT_ERROR_TIMED_OUT"; break; - case STT_ERROR_RECORDER_BUSY : + case STT_ERROR_RECORDER_BUSY: res = "STT_ERROR_RECORDER_BUSY"; break; - case STT_ERROR_OUT_OF_NETWORK : + case STT_ERROR_OUT_OF_NETWORK: res = "STT_ERROR_OUT_OF_NETWORK"; break; - case STT_ERROR_PERMISSION_DENIED : + case STT_ERROR_PERMISSION_DENIED: res = "STT_ERROR_PERMISSION_DENIED"; break; - case STT_ERROR_NOT_SUPPORTED : + case STT_ERROR_NOT_SUPPORTED: res = "STT_ERROR_NOT_SUPPORTED"; break; - case STT_ERROR_INVALID_STATE : + case STT_ERROR_INVALID_STATE: res = "STT_ERROR_INVALID_STATE"; break; - case STT_ERROR_INVALID_LANGUAGE : + case STT_ERROR_INVALID_LANGUAGE: res = "STT_ERROR_INVALID_LANGUAGE"; break; - case STT_ERROR_ENGINE_NOT_FOUND : + case STT_ERROR_ENGINE_NOT_FOUND: res = "STT_ERROR_ENGINE_NOT_FOUND"; break; - case STT_ERROR_OPERATION_FAILED : + case STT_ERROR_OPERATION_FAILED: res = "STT_ERROR_OPERATION_FAILED"; break; - case STT_ERROR_NOT_SUPPORTED_FEATURE : + case STT_ERROR_NOT_SUPPORTED_FEATURE: res = "STT_ERROR_NOT_SUPPORTED_FEATURE"; break; - default : + default: res = "UNKNOWN ERROR REASON"; break; }