gui/quick-add-popover: Specify const for strings using gettext

`gettext` returns a static string.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/656>
This commit is contained in:
Hari Rana
2025-10-31 09:40:44 -04:00
parent c3098bf23a
commit 0c09e41796
+2 -2
View File
@@ -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);