Prefer eina_stringshare_strlen for shared strings
This commit is contained in:
parent
df2b8a24a0
commit
27f6087892
|
@ -766,7 +766,7 @@ _on_text_clicked(void *data __UNUSED__,
|
|||
ELM_FILESELECTOR_DATA_GET(data, sd);
|
||||
|
||||
elm_entry_entry_set(obj, sd->path);
|
||||
elm_entry_cursor_pos_set(obj, strlen(sd->path));
|
||||
elm_entry_cursor_pos_set(obj, eina_stringshare_strlen(sd->path));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -1837,7 +1837,7 @@ _entry_selection_cleared_signal_cb(void *data,
|
|||
if ((top) && (elm_win_xwindow_get(top)))
|
||||
elm_cnp_selection_set
|
||||
(data, ELM_SEL_TYPE_PRIMARY, ELM_SEL_FORMAT_MARKUP,
|
||||
sd->cut_sel, strlen(sd->cut_sel));
|
||||
sd->cut_sel, eina_stringshare_strlen(sd->cut_sel));
|
||||
#endif
|
||||
eina_stringshare_del(sd->cut_sel);
|
||||
sd->cut_sel = NULL;
|
||||
|
|
|
@ -165,7 +165,7 @@ _prefix_check(void)
|
|||
|
||||
if (app_domain)
|
||||
{
|
||||
caps = alloca(strlen(app_domain) + 1);
|
||||
caps = alloca(eina_stringshare_strlen(app_domain) + 1);
|
||||
for (p1 = (char *)app_domain, p2 = caps; *p1; p1++, p2++)
|
||||
*p2 = toupper(*p1);
|
||||
*p2 = 0;
|
||||
|
|
|
@ -680,7 +680,7 @@ _min_max_set(Evas_Object *obj)
|
|||
}
|
||||
else if (sd->units)
|
||||
{
|
||||
int length = strlen(sd->units);
|
||||
int length = eina_stringshare_strlen(sd->units);
|
||||
|
||||
buf_min = alloca(length + 128);
|
||||
buf_max = alloca(length + 128);
|
||||
|
|
Loading…
Reference in New Issue