1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +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

@ -2,7 +2,7 @@
const String name_of_month(int month)
{
const String month_names[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
static const String month_names[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
return month_names[month - 1];
}