summaryrefslogtreecommitdiff
path: root/thirdparty/icu4c/common/servls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/icu4c/common/servls.cpp')
-rw-r--r--thirdparty/icu4c/common/servls.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/thirdparty/icu4c/common/servls.cpp b/thirdparty/icu4c/common/servls.cpp
index 7108afd4a5..98f0a8a12b 100644
--- a/thirdparty/icu4c/common/servls.cpp
+++ b/thirdparty/icu4c/common/servls.cpp
@@ -179,7 +179,8 @@ private:
length = other._ids.size();
for(i = 0; i < length; ++i) {
- _ids.addElementX(((UnicodeString *)other._ids.elementAt(i))->clone(), status);
+ LocalPointer<UnicodeString> clonedId(((UnicodeString *)other._ids.elementAt(i))->clone(), status);
+ _ids.adoptElement(clonedId.orphan(), status);
}
if(U_SUCCESS(status)) {