mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-2356 remove redundant argument check
X-SVN-Rev: 12179
This commit is contained in:
parent
2af5236067
commit
e4c5b5d5ae
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ UnicodeString::UnicodeString(UChar *buff,
|
|||
fCapacity = US_STACKBUF_SIZE;
|
||||
fArray = fStackBuffer;
|
||||
fFlags = kShortString;
|
||||
} else if(buff == 0 || buffLength < -1 || buffLength > buffCapacity) {
|
||||
} else if(buffLength < -1 || buffLength > buffCapacity) {
|
||||
setToBogus();
|
||||
} else if(buffLength == -1) {
|
||||
// fLength = u_strlen(buff); but do not look beyond buffCapacity
|
||||
|
|
Loading…
Add table
Reference in a new issue