]> git.mdlowis.com Git - proto/labwc.git/commitdiff
osd,ssd: don't cast away const
authorJohn Lindgren <john@jlindgren.net>
Wed, 1 Oct 2025 16:41:00 +0000 (12:41 -0400)
committerJohn Lindgren <john@jlindgren.net>
Sun, 12 Oct 2025 18:15:19 +0000 (14:15 -0400)
src/osd/osd-field.c
src/ssd/ssd-titlebar.c

index c8f796d1001f1ad5520e8a5e4639a52599a4c7e9..5b275bbbb5da15e4f9251b4c01e6bd05fbaf4b45 100644 (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;
index 13f5e7dfa3ee7396cfc92a73751e7e3e2e404b1b..152b9b614f0653bb884e48c2df8ce767d2fe53ff 100644 (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;
        }