]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/i18n/uatimeunitformat.cpp
ICU-551.24.tar.gz
[apple/icu.git] / icuSources / i18n / uatimeunitformat.cpp
index d85d1014b61aeb50792c12ae219cbdfef3478f4a..f8c40b9adb3791334f8efe72fc02f6f8be876568 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *****************************************************************************************
-* Copyright (C) 2014 Apple Inc. All Rights Reserved.
+* Copyright (C) 2014-2015 Apple Inc. All Rights Reserved.
 *****************************************************************************************
 */
 
@@ -18,6 +18,7 @@
 #include "unicode/unistr.h"
 #include "unicode/unum.h"
 #include "unicode/ures.h"
+#include "ureslocs.h"
 #include "uresimp.h"
 #include "ustr_imp.h"
 
@@ -163,7 +164,7 @@ uatmufmt_getTimePattern(const char*     locale,
     }
     int32_t resLen = 0;
     const UChar* resPtr = NULL;
-    UResourceBundle* rb =  ures_open(NULL, locale, status);
+    UResourceBundle* rb =  ures_open(U_ICUDATA_UNIT, locale, status);
     rb = ures_getByKeyWithFallback(rb, "durationUnits", rb, status);
     resPtr = ures_getStringByKeyWithFallback(rb, key, &resLen, status);
     if (U_SUCCESS(*status)) {