osd,ssd: don't cast away const

This commit is contained in:
John Lindgren 2025-10-01 12:41:00 -04:00
parent e6f54a0fc8
commit 40eed3915a
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ get_app_id_or_class(struct view *view, bool trim)
/* remove the first two nodes of 'org.' strings */
if (trim && !strncmp(identifier, "org.", 4)) {
char *p = (char *)identifier + 4;
const char *p = identifier + 4;
p = strchr(p, '.');
if (p) {
return ++p;

View file

@ -440,7 +440,7 @@ ssd_update_title(struct ssd *ssd)
}
struct view *view = ssd->view;
char *title = (char *)view_get_string_prop(view, "title");
const char *title = view_get_string_prop(view, "title");
if (string_null_or_empty(title)) {
return;
}