ICU-4707 Fix some compiler warnings.

X-SVN-Rev: 19995
This commit is contained in:
George Rhoten 2006-08-07 18:02:31 +00:00
parent 2acc34236c
commit 248545dcc7

View File

@ -4077,12 +4077,14 @@ inline UnicodeString&
UnicodeString::remove(int32_t start,
int32_t _length)
{
if(start <= 0 && _length == INT32_MAX) {
// remove(guaranteed everything) of a bogus string makes the string empty and non-bogus
return remove();
} else {
return doReplace(start, _length, NULL, 0, 0);
}
UnicodeString& result;
if(start <= 0 && _length == INT32_MAX) {
// remove(guaranteed everything) of a bogus string makes the string empty and non-bogus
result = remove();
} else {
result = doReplace(start, _length, NULL, 0, 0);
}
return result;
}
inline UnicodeString&