mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-10628 Use (const DateFormat*)fmt in udat_getContext, (const NumberFormat*)fmt in unum_getContext
X-SVN-Rev: 34916
This commit is contained in:
parent
f2738c9787
commit
2bf11e889d
2 changed files with 2 additions and 2 deletions
|
@ -996,7 +996,7 @@ udat_getContext(const UDateFormat* fmt, UDisplayContextType type, UErrorCode* st
|
|||
if (U_FAILURE(*status)) {
|
||||
return (UDisplayContext)0;
|
||||
}
|
||||
return ((DateFormat*)fmt)->getContext(type, *status);
|
||||
return ((const DateFormat*)fmt)->getContext(type, *status);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -800,7 +800,7 @@ unum_getContext(const UNumberFormat *fmt, UDisplayContextType type, UErrorCode*
|
|||
if (U_FAILURE(*status)) {
|
||||
return (UDisplayContext)0;
|
||||
}
|
||||
return ((NumberFormat*)fmt)->getContext(type, *status);
|
||||
return ((const NumberFormat*)fmt)->getContext(type, *status);
|
||||
}
|
||||
|
||||
U_INTERNAL UFormattable * U_EXPORT2
|
||||
|
|
Loading…
Add table
Reference in a new issue