ICU-2729 Mark data as const.
X-SVN-Rev: 12129
This commit is contained in:
parent
f31d82a835
commit
a65efb8761
@ -872,7 +872,7 @@ typedef struct {
|
||||
* '-', we use it as is (without the '-'). If it begins with '+', we
|
||||
* append a " Standard Time" if appropriate.
|
||||
*/
|
||||
WindowsZoneRemap ZONE_REMAP[] = {
|
||||
static const WindowsZoneRemap ZONE_REMAP[] = {
|
||||
"Central European", "-Warsaw",
|
||||
"Central Europe", "-Prague Bratislava",
|
||||
"China", "-Beijing",
|
||||
@ -888,11 +888,11 @@ WindowsZoneRemap ZONE_REMAP[] = {
|
||||
/**
|
||||
* Various registry keys and key fragments.
|
||||
*/
|
||||
static const char* CURRENT_ZONE_REGKEY = "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation\\";
|
||||
static const char* STANDARD_NAME_REGKEY = "StandardName";
|
||||
static const char* STANDARD_TIME_REGKEY = " Standard Time";
|
||||
static const char* TZI_REGKEY = "TZI";
|
||||
static const char* STD_REGKEY = "Std";
|
||||
static const char CURRENT_ZONE_REGKEY[] = "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation\\";
|
||||
static const char STANDARD_NAME_REGKEY[] = "StandardName";
|
||||
static const char STANDARD_TIME_REGKEY[] = " Standard Time";
|
||||
static const char TZI_REGKEY[] = "TZI";
|
||||
static const char STD_REGKEY[] = "Std";
|
||||
|
||||
/**
|
||||
* HKLM subkeys used to probe for the flavor of Windows. Note that we
|
||||
@ -900,7 +900,7 @@ static const char* STD_REGKEY = "Std";
|
||||
* NT, but on XP has become "GMT Standard Time". We need to
|
||||
* discriminate between these cases.
|
||||
*/
|
||||
static const char* WIN_TYPE_PROBE_REGKEY[] = {
|
||||
static const char* const WIN_TYPE_PROBE_REGKEY[] = {
|
||||
/* WIN_9X_ME_TYPE */
|
||||
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Time Zones",
|
||||
|
||||
@ -914,7 +914,7 @@ static const char* WIN_TYPE_PROBE_REGKEY[] = {
|
||||
* The time zone root subkeys (under HKLM) for different flavors of
|
||||
* Windows.
|
||||
*/
|
||||
static const char* TZ_REGKEY[] = {
|
||||
static const char* const TZ_REGKEY[] = {
|
||||
/* WIN_9X_ME_TYPE */
|
||||
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Time Zones\\",
|
||||
|
||||
|
@ -72,7 +72,7 @@ static const char NAME_PROP[] = "na"; // Unicode name property alias
|
||||
U_CDECL_BEGIN
|
||||
typedef UBool (U_CALLCONV *_C99_Property_Function)(UChar32);
|
||||
U_CDECL_END
|
||||
struct _C99_Map {
|
||||
static const struct _C99_Map {
|
||||
const char* name;
|
||||
_C99_Property_Function func;
|
||||
} _C99_DISPATCH[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user