mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-5410 Improve code coverage by turning a stack array into a static const array.
X-SVN-Rev: 21749
This commit is contained in:
parent
e69c3a3b89
commit
e9a3130705
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
********************************************************************************
|
||||
* Copyright (C) 2005-2006, International Business Machines
|
||||
* Copyright (C) 2005-2007, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
********************************************************************************
|
||||
*
|
||||
|
@ -69,7 +69,7 @@ UnicodeString *getTimeDateFormat(const Calendar *cal, const Locale *locale, UErr
|
|||
}
|
||||
|
||||
if (U_FAILURE(status)) {
|
||||
UChar defaultPattern[] = {0x007B, 0x0031, 0x007D, 0x0020, 0x007B, 0x0030, 0x007D, 0x0000}; // "{1} {0}"
|
||||
static const UChar defaultPattern[] = {0x007B, 0x0031, 0x007D, 0x0020, 0x007B, 0x0030, 0x007D, 0x0000}; // "{1} {0}"
|
||||
return new UnicodeString(defaultPattern, ARRAY_SIZE(defaultPattern));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue