app_control_destroy(ac);
}
+static void get_content(char *buf, char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vsnprintf(buf, 4096, fmt, ap);
+ va_end(ap);
+}
+
static Evas_Object *create_popup_tv(Evas_Object *layout, heremaps_uc_app_data *ad)
{
LS_FUNC_ENTER
elm_object_part_text_set(popup, "title,text", P_("IDS_POSITIONING_CONSENT_TITLE"));
char buf[4096] = {0};
- char *str1 = P_("IDS_POSITIONING_CONSENT_BODY");
char *str2 = "<color=#006fd1ff underline=on underline_color=#006fd1ff><a href=http://here.com/terms/service-terms>http://here.com/terms/service-terms</a></color>";
char *str3 = "<color=#006fd1ff underline=on underline_color=#006fd1ff><a href=http://here.com/privacy/privacy-policy>http://here.com/privacy/privacy-policy</a></color>";
- snprintf(buf, 4096, str1, str2, str3);
+ get_content(buf, P_("IDS_POSITIONING_CONSENT_BODY"), str2, str3);
char *text = strdup(buf);
elm_object_text_set(popup, text);
evas_object_show(box);
char buf[4096] = {0};
- char *str1 = P_("IDS_POSITIONING_CONSENT_BODY");
char *str2 = "http://here.com/terms/service-terms";
char *str3 = "http://here.com/privacy/privacy-policy";
- snprintf(buf, 4096, str1, str2, str3);
+ get_content(buf, P_("IDS_POSITIONING_CONSENT_BODY"), str2, str3);
char *text = strdup(buf);
Evas_Object *entry = elm_entry_add(box);
evas_object_show(box);
char buf[4096] = {0};
- char *str1 = P_("IDS_POSITIONING_CONSENT_BODY");
char *str2 = "<color=#006fd1ff underline=on underline_color=#006fd1ff><a href=http://here.com/terms/service-terms>http://here.com/terms/service-terms</a></color>";
char *str3 = "<color=#006fd1ff underline=on underline_color=#006fd1ff><a href=http://here.com/privacy/privacy-policy>http://here.com/privacy/privacy-policy</a></color>";
- snprintf(buf, 4096, str1, str2, str3);
+ get_content(buf, P_("IDS_POSITIONING_CONSENT_BODY"), str2, str3);
char *text = strdup(buf);
Evas_Object *entry = elm_entry_add(box);
if (error != MAPS_ERROR_NONE) {
if (errMsg.size() > 0) errMsg += ". ";
- MAPS_LOGE("ERROR: %s%s (%s, %ld)", errMsg.data(),
+ MAPS_LOGE("ERROR: %s%s (%s, %d)", errMsg.data(),
ConverHereErrorToString(ConvertToHereError(error)),
ConvertMapsErrorToChar(error), error);
}
ret = app_manager_get_app_id(nProcessId, &strAppId);
if (ret != APP_MANAGER_ERROR_NONE) {
- MAPS_LOGI("Get app_id [%ld]. nRet[%d]", nProcessId, ret);
+ MAPS_LOGI("Get app_id [%d]. nRet[%d]", (int)nProcessId, ret);
} else {
for (int i = 0; i < testAppIdCount; i++) {
if (!strncmp(strAppId, testAppIdList[i], strlen(testAppIdList[i]))) {