]> granicus.if.org Git - icu/commitdiff
ICU-10628 udat_getContext should use const UDateFormat*
authorPeter Edberg <pedberg@unicode.org>
Wed, 15 Jan 2014 20:55:04 +0000 (20:55 +0000)
committerPeter Edberg <pedberg@unicode.org>
Wed, 15 Jan 2014 20:55:04 +0000 (20:55 +0000)
X-SVN-Rev: 34904

icu4c/source/i18n/udat.cpp
icu4c/source/i18n/unicode/udat.h

index 9f7184cf6d88ded5a5ab355c45e8a6068156e902..c2a53b136be2ff86c96eae2aac1f383ccd5829d7 100644 (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;
index ccdbc73eb93a40068a9b2f01de32f2ddc01b7293..9378946993e70763d0a4509132904e5b2d187e87 100644 (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 */