}
std::string delay_str = std::to_string(delay);
- int ret_app = app_control_add_extra_data(app_control, kAlarmRelativeDelayKey, delay_str.c_str());
+ int ret_app =
+ app_control_add_extra_data(app_control, kAlarmRelativeDelayKey, delay_str.c_str());
if (APP_CONTROL_ERROR_NONE != ret_app) {
LogAndReportError(
PlatformResult(ErrorCode::UNKNOWN_ERR, "Fail to add data from app_control."), &out,
int ret_app = app_control_get_extra_data(app_control, kAlarmRelativeDelayKey, &delay_string);
if (APP_CONTROL_ERROR_NONE != ret_app) {
- return LogAndCreateResult(ErrorCode::NOT_FOUND_ERR, "Failed to get data.",
- ("Failed to get data: %d (%s)", ret_app, get_error_message(ret_app)));
+ return LogAndCreateResult(
+ ErrorCode::NOT_FOUND_ERR, "Failed to get data.",
+ ("Failed to get data: %d (%s)", ret_app, get_error_message(ret_app)));
}
obj.insert(std::make_pair("type", picojson::value(kAlarmRelative)));