ICU-13541 rbbi.cpp, try again to fix xlC build problem.
X-SVN-Rev: 41042
This commit is contained in:
parent
4dd5b0f70a
commit
0a41842733
@ -277,7 +277,6 @@ RuleBasedBreakIterator::operator=(const RuleBasedBreakIterator& that) {
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
void RuleBasedBreakIterator::init(UErrorCode &status) {
|
||||
fText = UTEXT_INITIALIZER;
|
||||
fCharIter = NULL;
|
||||
fData = NULL;
|
||||
fPosition = 0;
|
||||
@ -289,7 +288,12 @@ void RuleBasedBreakIterator::init(UErrorCode &status) {
|
||||
fBreakCache = NULL;
|
||||
fDictionaryCache = NULL;
|
||||
|
||||
if (U_FAILURE(status)) {
|
||||
// Note: IBM xlC is unable to assign or initialize member fText from UTEXT_INITIALIZER.
|
||||
// fText = UTEXT_INITIALIZER;
|
||||
static const UText initializedUText = UTEXT_INITIALIZER;
|
||||
uprv_memcpy(&fText, &initializedUText, sizeof(UText));
|
||||
|
||||
if (U_FAILURE(status)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user