| Index: source/i18n/udatpg.cpp
|
| diff --git a/source/i18n/udatpg.cpp b/source/i18n/udatpg.cpp
|
| index 9b6a107ed6b6a6ccea72860bc9b68a2812f092c9..d0bafa30a89cc515e956ea01c69d8685c8aee690 100644
|
| --- a/source/i18n/udatpg.cpp
|
| +++ b/source/i18n/udatpg.cpp
|
| @@ -1,7 +1,7 @@
|
| /*
|
| *******************************************************************************
|
| *
|
| -* Copyright (C) 2009-2012, International Business Machines
|
| +* Copyright (C) 2009-2015, International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| *
|
| *******************************************************************************
|
| @@ -82,7 +82,7 @@ udatpg_getBestPatternWithOptions(UDateTimePatternGenerator *dtpg,
|
| }
|
|
|
| U_CAPI int32_t U_EXPORT2
|
| -udatpg_getSkeleton(UDateTimePatternGenerator *dtpg,
|
| +udatpg_getSkeleton(UDateTimePatternGenerator * /* dtpg */,
|
| const UChar *pattern, int32_t length,
|
| UChar *skeleton, int32_t capacity,
|
| UErrorCode *pErrorCode) {
|
| @@ -94,12 +94,13 @@ udatpg_getSkeleton(UDateTimePatternGenerator *dtpg,
|
| return 0;
|
| }
|
| UnicodeString patternString((UBool)(length<0), pattern, length);
|
| - UnicodeString result=((DateTimePatternGenerator *)dtpg)->getSkeleton(patternString, *pErrorCode);
|
| + UnicodeString result=DateTimePatternGenerator::staticGetSkeleton(
|
| + patternString, *pErrorCode);
|
| return result.extract(skeleton, capacity, *pErrorCode);
|
| }
|
|
|
| U_CAPI int32_t U_EXPORT2
|
| -udatpg_getBaseSkeleton(UDateTimePatternGenerator *dtpg,
|
| +udatpg_getBaseSkeleton(UDateTimePatternGenerator * /* dtpg */,
|
| const UChar *pattern, int32_t length,
|
| UChar *skeleton, int32_t capacity,
|
| UErrorCode *pErrorCode) {
|
| @@ -111,7 +112,8 @@ udatpg_getBaseSkeleton(UDateTimePatternGenerator *dtpg,
|
| return 0;
|
| }
|
| UnicodeString patternString((UBool)(length<0), pattern, length);
|
| - UnicodeString result=((DateTimePatternGenerator *)dtpg)->getBaseSkeleton(patternString, *pErrorCode);
|
| + UnicodeString result=DateTimePatternGenerator::staticGetBaseSkeleton(
|
| + patternString, *pErrorCode);
|
| return result.extract(skeleton, capacity, *pErrorCode);
|
| }
|
|
|
|
|