ICU-900 Fixed some compiler warnings.

X-SVN-Rev: 6355
This commit is contained in:
George Rhoten 2001-10-19 23:57:38 +00:00
parent a8db048c55
commit 7a678be732
2 changed files with 8 additions and 8 deletions

View File

@ -258,11 +258,11 @@ void Segments::addParenthesisAt(int32_t offset, UBool isOpen, UErrorCode &status
isOpenParen.addElement(isOpen ? 1 : 0, status);
}
int32_t Segments::getLastParenOffset(UBool& isOpenParen) const {
int32_t Segments::getLastParenOffset(UBool& isOpenParenReturn) const {
if (size() == 0) {
return -1;
}
isOpenParen = isOpen(size()-1);
isOpenParenReturn = isOpen(size()-1);
return offset(size()-1);
}
@ -829,11 +829,11 @@ TransliteratorParser::~TransliteratorParser() {
void
TransliteratorParser::parse(const UnicodeString& rules,
UTransDirection direction,
UTransDirection transDirection,
UParseError& pe,
UErrorCode& ec) {
if (U_SUCCESS(ec)) {
parseRules(rules, direction);
parseRules(rules, transDirection);
pe = parseError;
ec = status;
}

View File

@ -179,11 +179,11 @@ UnicodeSet::UnicodeSet(int8_t category, UErrorCode& status) :
if (category < 0 || category >= U_CHAR_CATEGORY_COUNT) {
status = U_ILLEGAL_ARGUMENT_ERROR;
} else {
UnicodeString pat(FALSE, CATEGORY_NAMES + category*2, 2);
pat.insert(0, OPEN);
pat.append(CLOSE);
UnicodeString pattern(FALSE, CATEGORY_NAMES + category*2, 2);
pattern.insert(0, OPEN);
pattern.append(CLOSE);
list = new UChar32[capacity];
applyPattern(pat, status);
applyPattern(pattern, status);
}
}
}