mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
osd,ssd: don't cast away const
This commit is contained in:
parent
e6f54a0fc8
commit
40eed3915a
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue