]> granicus.if.org Git - icu/commit
ICU-21763 UVector cleanup, continued.
authorAndy Heninger <andy.heninger@gmail.com>
Fri, 12 Nov 2021 00:12:44 +0000 (16:12 -0800)
committerAndy Heninger <andy.heninger@gmail.com>
Tue, 30 Nov 2021 17:12:16 +0000 (09:12 -0800)
commitfa30c0eeb49ff6af1055699f7114ac6a483e5c86
tree6aa995809e681b7943b891c07e2a3b4432e56b8a
parent54e4120738355e1fb0b03e93b00f04e258b16e17
ICU-21763 UVector cleanup, continued.

Revise uses of UVector in the next batch of files to better handle memory
allocation failures.  This is one of an ongoing series of commits to address
similar problems with UVector usage throughout ICU.

The changes primarily involve switching uses of UVector::addElementX() to the
new adoptElement() or addElement() functions, as appropriate, and using
LocalPointers for tracking memory ownership.
icu4c/source/common/normalizer2impl.cpp
icu4c/source/common/serv.cpp
icu4c/source/common/servls.cpp
icu4c/source/common/servnotf.cpp
icu4c/source/i18n/alphaindex.cpp
icu4c/source/i18n/collationdatabuilder.cpp
icu4c/source/i18n/rbt_set.cpp
icu4c/source/i18n/uspoof_conf.cpp
icu4c/source/i18n/uspoof_conf.h
icu4c/source/test/intltest/icusvtst.cpp