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:
parent
dc680d57aa
commit
5744049b74
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue