mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 18:39:45 +01:00
Statically allocate strings in UtilityClass::number()
It slightly bothered me that these weren't statically allocated, so they are now.
This commit is contained in:
parent
5f91bdd073
commit
78181bc676
1 changed files with 3 additions and 3 deletions
|
@ -149,9 +149,9 @@ std::string UtilityClass::timestring( int t )
|
||||||
|
|
||||||
std::string UtilityClass::number( int _t )
|
std::string UtilityClass::number( int _t )
|
||||||
{
|
{
|
||||||
const std::string ones_place[] = {"One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};
|
static const std::string ones_place[] = {"One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};
|
||||||
const std::string tens_place[] = {"Ten", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"};
|
static const std::string tens_place[] = {"Ten", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety"};
|
||||||
const std::string teens[] = {"Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen"};
|
static const std::string teens[] = {"Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen"};
|
||||||
|
|
||||||
if (_t < 0)
|
if (_t < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue