ICU-7980 fix a few coverity errors
X-SVN-Rev: 28691
This commit is contained in:
parent
1d61380988
commit
e8b6b950f0
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2007-2009, International Business Machines Corporation and
|
||||
* Copyright (C) 2007-2010, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*
|
||||
@ -606,7 +606,6 @@ AndConstraint::updateRepeatLimit(int32_t maxLimit) {
|
||||
}
|
||||
else {
|
||||
if ( rangeHigh == -1 ) {
|
||||
return(rangeLow>maxLimit? rangeLow : maxLimit);
|
||||
return uprv_max(rangeLow, maxLimit);
|
||||
}
|
||||
else{
|
||||
|
@ -1839,7 +1839,6 @@ ucurr_countCurrencies(const char* locale,
|
||||
{
|
||||
int32_t currCount = 0;
|
||||
int32_t resLen = 0;
|
||||
const UChar* s = NULL;
|
||||
|
||||
if (ec != NULL && U_SUCCESS(*ec))
|
||||
{
|
||||
@ -1876,7 +1875,6 @@ ucurr_countCurrencies(const char* locale,
|
||||
{
|
||||
// get the currency resource
|
||||
UResourceBundle *currencyRes = ures_getByIndex(countryArray, i, NULL, &localStatus);
|
||||
s = ures_getStringByKey(currencyRes, "id", &resLen, &localStatus);
|
||||
|
||||
// get the from date
|
||||
int32_t fromLength = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user