ICU-1953 cast LE_MEMORY_ALLOCATION_ERROR to UErrorCode.
X-SVN-Rev: 8985
This commit is contained in:
parent
898fd409f9
commit
1a92db995b
@ -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…
Reference in New Issue
Block a user