ICU-900 Fixed some compiler warnings.
X-SVN-Rev: 6355
This commit is contained in:
parent
a8db048c55
commit
7a678be732
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user