summaryrefslogtreecommitdiffstats
path: root/thirdparty/icu4c/common/uresdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/icu4c/common/uresdata.cpp')
-rw-r--r--thirdparty/icu4c/common/uresdata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/thirdparty/icu4c/common/uresdata.cpp b/thirdparty/icu4c/common/uresdata.cpp
index b219e40e21..c38e75c65b 100644
--- a/thirdparty/icu4c/common/uresdata.cpp
+++ b/thirdparty/icu4c/common/uresdata.cpp
@@ -571,7 +571,7 @@ const uint8_t *ResourceDataValue::getBinary(int32_t &length, UErrorCode &errorCo
ResourceArray ResourceDataValue::getArray(UErrorCode &errorCode) const {
if(U_FAILURE(errorCode)) {
- return ResourceArray();
+ return {};
}
const uint16_t *items16 = nullptr;
const Resource *items32 = nullptr;
@@ -590,14 +590,14 @@ ResourceArray ResourceDataValue::getArray(UErrorCode &errorCode) const {
break;
default:
errorCode = U_RESOURCE_TYPE_MISMATCH;
- return ResourceArray();
+ return {};
}
return ResourceArray(items16, items32, length, fTraceInfo);
}
ResourceTable ResourceDataValue::getTable(UErrorCode &errorCode) const {
if(U_FAILURE(errorCode)) {
- return ResourceTable();
+ return {};
}
const uint16_t *keys16 = nullptr;
const int32_t *keys32 = nullptr;
@@ -627,7 +627,7 @@ ResourceTable ResourceDataValue::getTable(UErrorCode &errorCode) const {
break;
default:
errorCode = U_RESOURCE_TYPE_MISMATCH;
- return ResourceTable();
+ return {};
}
return ResourceTable(keys16, keys32, items16, items32, length, fTraceInfo);
}