ICU-10628 Use (const DateFormat*)fmt in udat_getContext, (const NumberFormat*)fmt in unum_getContext

X-SVN-Rev: 34916
This commit is contained in:
Peter Edberg 2014-01-16 22:46:04 +00:00
parent f2738c9787
commit 2bf11e889d
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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