summaryrefslogtreecommitdiff
path: root/thirdparty/icu4c/common/ustack.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2021-10-28 09:15:28 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2021-10-28 09:15:28 +0300
commit44a241b241af6453d4459c79b1a562c447e36636 (patch)
tree0b90326241b6e647b9f8991cddeee5e8d4d93e9f /thirdparty/icu4c/common/ustack.cpp
parent157cba39331c5ca945c8c3bb2173c5363550a680 (diff)
ICU: Update to version 70.1
Diffstat (limited to 'thirdparty/icu4c/common/ustack.cpp')
-rw-r--r--thirdparty/icu4c/common/ustack.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/thirdparty/icu4c/common/ustack.cpp b/thirdparty/icu4c/common/ustack.cpp
index fb314b0ebe..8d9e475374 100644
--- a/thirdparty/icu4c/common/ustack.cpp
+++ b/thirdparty/icu4c/common/ustack.cpp
@@ -37,10 +37,9 @@ UStack::~UStack() {}
void* UStack::pop(void) {
int32_t n = size() - 1;
- void* result = 0;
+ void* result = nullptr;
if (n >= 0) {
- result = elementAt(n);
- removeElementAt(n);
+ result = orphanElementAt(n);
}
return result;
}