ICU-10628 udat_getContext should use const UDateFormat*

X-SVN-Rev: 34904
This commit is contained in:
Peter Edberg 2014-01-15 20:55:04 +00:00
parent 34388ce402
commit 541a0405a7
2 changed files with 3 additions and 3 deletions

View File

@ -991,7 +991,7 @@ udat_setContext(UDateFormat* fmt, UDisplayContext value, UErrorCode* status)
}
U_CAPI UDisplayContext U_EXPORT2
udat_getContext(UDateFormat* fmt, UDisplayContextType type, UErrorCode* status)
udat_getContext(const UDateFormat* fmt, UDisplayContextType type, UErrorCode* status)
{
if (U_FAILURE(*status)) {
return (UDisplayContext)0;

View File

@ -1343,10 +1343,10 @@ udat_setContext(UDateFormat* fmt, UDisplayContext value, UErrorCode* status);
* @param type The UDisplayContextType whose value to return
* @param status A pointer to an UErrorCode to receive any errors
* @return The UDisplayContextValue for the specified type.
* @draft ICU 51
* @draft ICU 53
*/
U_DRAFT UDisplayContext U_EXPORT2
udat_getContext(UDateFormat* fmt, UDisplayContextType type, UErrorCode* status);
udat_getContext(const UDateFormat* fmt, UDisplayContextType type, UErrorCode* status);
#endif /* U_HIDE_DRAFT_API */