From 0c09e41796cdebba1c3bf752545dbf498781e42f Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Fri, 31 Oct 2025 09:40:44 -0400 Subject: [PATCH] gui/quick-add-popover: Specify `const` for strings using gettext `gettext` returns a static string. Part-of: --- src/gui/gcal-quick-add-popover.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/gcal-quick-add-popover.c b/src/gui/gcal-quick-add-popover.c index cc07b960..b6de97f4 100644 --- a/src/gui/gcal-quick-add-popover.c +++ b/src/gui/gcal-quick-add-popover.c @@ -365,7 +365,7 @@ get_date_string_for_day (GDateTime *day) } else if (n_days < -1 && n_days > -8) { - gchar *event_weekday; + const gchar *event_weekday; const gchar *event_weekday_names[] = { N_("New Event next Monday"), N_("New Event next Tuesday"), @@ -443,7 +443,7 @@ update_header (GcalQuickAddPopover *self) g_autofree gchar *start_hour = NULL; g_autofree gchar *end_hour = NULL; GcalTimeFormat time_format; - gchar *hour_format; + const gchar *hour_format; time_format = gcal_context_get_time_format (self->context);