ICU-4268 don't need USetAdder.remove(), initialize to NULL

X-SVN-Rev: 17846
This commit is contained in:
Markus Scherer 2005-06-09 17:47:18 +00:00
parent 0a7413ccd9
commit 19593be775
4 changed files with 10 additions and 5 deletions

View file

@ -1286,7 +1286,8 @@ const UnicodeSet* UnicodeSet::getInclusions(int32_t src, UErrorCode &status) {
(USet *)incl,
_set_add,
_set_addRange,
_set_addString
_set_addString,
NULL // don't need remove()
};
if (incl != NULL) {
@ -1369,7 +1370,8 @@ UnicodeSet& UnicodeSet::closeOver(int32_t attribute) {
(USet *)&foldSet,
_set_add,
_set_addRange,
_set_addString
_set_addString,
NULL // don't need remove()
};
// start with input set to guarantee inclusion

View file

@ -63,7 +63,8 @@ NameUnicodeTransliterator::NameUnicodeTransliterator(UnicodeFilter* adoptedFilte
(USet *)&legal, // USet* == UnicodeSet*
_set_add,
_set_addRange,
_set_addString
_set_addString,
NULL // don't need remove()
};
uprv_getCharNameCharacters(&sa);
}

View file

@ -1680,7 +1680,8 @@ TestCharNames() {
NULL,
uset_add,
uset_addRange,
uset_addString
uset_addString,
NULL // don't need remove()
};
sa.set=set;
uprv_getCharNameCharacters(&sa);

View file

@ -1713,7 +1713,8 @@ BasicNormalizerTest::TestSkippable() {
(USet *)&starts,
_set_add,
_set_addRange,
_set_addString
_set_addString,
NULL // don't need remove()
};
unorm_addPropertyStarts(&sa, &status);
if(U_FAILURE(status)) {