1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Calendar: Make const arrays static as well

This commit is contained in:
rhin123 2020-03-18 11:25:48 -05:00 committed by Andreas Kling
parent dc680d57aa
commit 5744049b74
2 changed files with 2 additions and 2 deletions

View file

@ -128,7 +128,7 @@ void CalendarWidget::CalendarTile::update_values(Calendar& calendar, int index,
m_display_weekday_name = index < 7;
if (m_display_weekday_name) {
const String m_day_names[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
static const String m_day_names[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
m_weekday_name = m_day_names[index];
}