diff options
author | rhin123 <ryanrhin@gmail.com> | 2020-03-18 11:25:48 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-19 09:55:14 +0100 |
commit | 5744049b7436585c551806dcc4fbbd2feb411eb6 (patch) | |
tree | 5e7bef0f6dc8697f3f04c30f8a58b89f545872a9 /Applications/Calendar/CalendarWidget.cpp | |
parent | dc680d57aa9677b24bdda2ca2bf09a71b47fb3f6 (diff) | |
download | serenity-5744049b7436585c551806dcc4fbbd2feb411eb6.zip |
Calendar: Make const arrays static as well
Diffstat (limited to 'Applications/Calendar/CalendarWidget.cpp')
-rw-r--r-- | Applications/Calendar/CalendarWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Calendar/CalendarWidget.cpp b/Applications/Calendar/CalendarWidget.cpp index 2b8b96a69c..d4db33bbc6 100644 --- a/Applications/Calendar/CalendarWidget.cpp +++ b/Applications/Calendar/CalendarWidget.cpp @@ -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]; } |