From: Haifeng Deng Date: Wed, 3 Apr 2013 02:22:15 +0000 (+0800) Subject: Fix defects according to prevent report X-Git-Tag: accepted/tizen_2.1/20130425.024739~54^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3db128cbf7f402ed1fff6949bc27036450a5b30;p=platform%2Fcore%2Fuifw%2Fisf.git Fix defects according to prevent report Change-Id: I495d7d4d6d4d8f88901d1b5beb32c04a53a56ea8 --- diff --git a/ism/modules/frontend/scim_socket_frontend.cpp b/ism/modules/frontend/scim_socket_frontend.cpp index 9ceb919..c3e5ce4 100644 --- a/ism/modules/frontend/scim_socket_frontend.cpp +++ b/ism/modules/frontend/scim_socket_frontend.cpp @@ -552,7 +552,8 @@ SocketFrontEnd::get_surrounding_text (int id, WideString &text, int &cursor, int m_send_trans.put_command (SCIM_TRANS_CMD_REPLY); // Move the read ptr to the end. - m_send_trans.get_command (cmd); + if (!m_send_trans.get_command (cmd)) + SCIM_DEBUG_FRONTEND (1) << __func__ << " Get command is failed!!!\n"; } } return ret; @@ -596,7 +597,8 @@ SocketFrontEnd::delete_surrounding_text (int id, int offset, int len) m_send_trans.put_command (SCIM_TRANS_CMD_REPLY); // Move the read ptr to the end. - m_send_trans.get_command (cmd); + if (!m_send_trans.get_command (cmd)) + SCIM_DEBUG_FRONTEND (1) << __func__ << " Get command is failed!!!\n"; } } return ret; diff --git a/ism/modules/imengine/scim_socket_imengine.cpp b/ism/modules/imengine/scim_socket_imengine.cpp index a2e43b4..a1b038e 100644 --- a/ism/modules/imengine/scim_socket_imengine.cpp +++ b/ism/modules/imengine/scim_socket_imengine.cpp @@ -1228,6 +1228,7 @@ SocketInstance::do_transaction (Transaction &trans, bool &ret) case ISM_TRANS_CMD_TRANSACTION_CONTINUE: { cont = true; + break; } default: SCIM_DEBUG_IMENGINE(3) << " Strange cmd: " << cmd << "\n";