mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-1953 cast LE_MEMORY_ALLOCATION_ERROR to UErrorCode.
X-SVN-Rev: 8985
This commit is contained in:
parent
898fd409f9
commit
1a92db995b
1 changed files with 4 additions and 4 deletions
|
@ -292,10 +292,10 @@ inline int32_t ICULayoutEngine::layoutString(const UnicodeString &str,
|
|||
UChar *chars = new UChar[max];
|
||||
|
||||
//test for NULL
|
||||
if(chars == NULL) {
|
||||
success = LE_MEMORY_ALLOCATION_ERROR;
|
||||
return 0;
|
||||
}
|
||||
if(chars == NULL) {
|
||||
success = (UErrorCode) LE_MEMORY_ALLOCATION_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
||||
str.extract(0, max, chars);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue