]> granicus.if.org Git - icu/commit
ICU-21763 UVector cleanup in vtzone.cpp
authorAndy Heninger <andy.heninger@gmail.com>
Sat, 2 Oct 2021 05:20:18 +0000 (22:20 -0700)
committerAndy Heninger <andy.heninger@gmail.com>
Sat, 30 Oct 2021 00:38:42 +0000 (17:38 -0700)
commit83eb2ee1d8ea9a215cb7d2bf8fe085b514b43b61
treee87f7bc76abb022bfa9ac8a4a53f1c2169e0a723
parentf66c8ca36bf6b6a9c24d2cc1321445d06abda419
ICU-21763 UVector cleanup in vtzone.cpp

Revise uses of UVector in vtzone.cpp 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/i18n/vtzone.cpp