From 44a241b241af6453d4459c79b1a562c447e36636 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 28 Oct 2021 09:15:28 +0300 Subject: ICU: Update to version 70.1 --- thirdparty/icu4c/common/ustack.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'thirdparty/icu4c/common/ustack.cpp') 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; } -- cgit v1.2.3