From: Eunyoung Lee Date: Thu, 29 Sep 2022 11:20:56 +0000 (+0900) Subject: Add a type casting for a callback X-Git-Tag: tizen_7.0_src.m2_release^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0_hotfix;p=profile%2Fwearable%2Fapps%2Fnative%2Fcall-ui.git Add a type casting for a callback Change-Id: I7ffb63c4b215f74a8f7d5852c12a4613940b9d2b --- diff --git a/call-ui/presenters/misc/MotionSensorPresenter.cpp b/call-ui/presenters/misc/MotionSensorPresenter.cpp index 99e18fd..d8ff443 100644 --- a/call-ui/presenters/misc/MotionSensorPresenter.cpp +++ b/call-ui/presenters/misc/MotionSensorPresenter.cpp @@ -59,7 +59,7 @@ namespace callui { } res = hand_gesture_start_recognition(m_gesture, HAND_GESTURE_WRIST_UP, - CALLBACK_B(MotionSensorPresenter::onGestureCb), + (hand_gesture_recognition_cb)CALLBACK_B(MotionSensorPresenter::onGestureCb), this); if (res != HAND_GESTURE_ERROR_NONE) { LOG_RETURN(RES_FAIL, "gesture_start_recognition() failed. "