Change some indent for Tizen 3.0 Coding rule
[platform/core/api/smartcard.git] / src / ClientChannel.cpp
index c7e9dd4..b30e2e1 100644 (file)
@@ -166,8 +166,7 @@ namespace smartcard_service_api
        {
                if (isClosed() == false)
                {
-                       if (getSession()->getReader()->isSecureElementPresent() == true)
-                       {
+                       if (getSession()->getReader()->isSecureElementPresent() == true) {
                                gint ret;
                                GError *error = NULL;
 
@@ -194,9 +193,7 @@ namespace smartcard_service_api
 
                                        throw ErrorIO(SCARD_ERROR_IPC_FAILED);
                                }
-                       }
-                       else
-                       {
+                       } else {
                                _INFO("unavailable channel");
                        }
                }
@@ -206,10 +203,8 @@ namespace smartcard_service_api
        {
                int result = SCARD_ERROR_OK;
 
-               if (isClosed() == false)
-               {
-                       if (getSession()->getReader()->isSecureElementPresent() == true)
-                       {
+               if (isClosed() == false) {
+                       if (getSession()->getReader()->isSecureElementPresent() == true) {
                                CallbackParam *param = new CallbackParam();
 
                                param->instance = this;
@@ -221,9 +216,7 @@ namespace smartcard_service_api
                                        GPOINTER_TO_UINT(context),
                                        GPOINTER_TO_UINT(handle), NULL,
                                        &ClientChannel::channel_close_cb, param);
-                       }
-                       else
-                       {
+                       } else {
                                _ERR("unavailable channel");
                                result = SCARD_ERROR_ILLEGAL_STATE;
                        }
@@ -238,8 +231,7 @@ namespace smartcard_service_api
        {
                int rv = SCARD_ERROR_OK;
 
-               if (getSession()->getReader()->isSecureElementPresent() == true)
-               {
+               if (getSession()->getReader()->isSecureElementPresent() == true) {
                        GVariant *var_command = NULL, *var_response = NULL;
                        GError *error = NULL;
 
@@ -251,7 +243,6 @@ namespace smartcard_service_api
                                GPOINTER_TO_UINT(handle),
                                var_command, &rv, &var_response,
                                NULL, &error) == true) {
-
                                if (rv == SCARD_ERROR_OK) {
                                        GDBusHelper::convertVariantToByteArray(var_response, transmitResponse);
                                        result = transmitResponse;
@@ -265,9 +256,7 @@ namespace smartcard_service_api
 
                                throw ErrorIO(SCARD_ERROR_IPC_FAILED);
                        }
-               }
-               else
-               {
+               } else {
                        _ERR("unavailable channel");
                        throw ErrorIllegalState(SCARD_ERROR_UNAVAILABLE);
                }
@@ -279,8 +268,7 @@ namespace smartcard_service_api
        {
                int result;
 
-               if (getSession()->getReader()->isSecureElementPresent() == true)
-               {
+               if (getSession()->getReader()->isSecureElementPresent() == true) {
                        GVariant *var_command;
                        CallbackParam *param = new CallbackParam();
 
@@ -298,9 +286,7 @@ namespace smartcard_service_api
                                &ClientChannel::channel_transmit_cb, param);
 
                        result = SCARD_ERROR_OK;
-               }
-               else
-               {
+               } else {
                        _ERR("unavailable channel");
                        result = SCARD_ERROR_ILLEGAL_STATE;
                }