]> granicus.if.org Git - icu/commitdiff
ICU-13835 Fixing C++17 compiler error.
authorShane Carr <shane@unicode.org>
Thu, 14 Jun 2018 20:29:11 +0000 (20:29 +0000)
committerShane Carr <shane@unicode.org>
Thu, 14 Jun 2018 20:29:11 +0000 (20:29 +0000)
X-SVN-Rev: 41523

icu4c/source/i18n/number_skeletons.cpp

index 5d74f1e6ae6c700b0bc4ec398d4f7713056f86f7..c7bb18b5f3d2b5130bcebf17ffa9d8caecd1360c 100644 (file)
@@ -420,7 +420,7 @@ UnicodeString skeleton::generate(const MacroProps& macros, UErrorCode& status) {
 }
 
 MacroProps skeleton::parseSkeleton(const UnicodeString& skeletonString, UErrorCode& status) {
-    if (U_FAILURE(status)) { return {}; }
+    if (U_FAILURE(status)) { return MacroProps(); }
 
     // Add a trailing whitespace to the end of the skeleton string to make code cleaner.
     UnicodeString tempSkeletonString(skeletonString);