mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-18 19:25:49 +00:00
ICU-6366 added error checking.
X-SVN-Rev: 24261
This commit is contained in:
parent
1a359a2fe6
commit
1d28513708
1 changed files with 4 additions and 1 deletions
|
@ -59,10 +59,13 @@ UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralRules)
|
|||
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(PluralKeywordEnumeration)
|
||||
|
||||
PluralRules::PluralRules(UErrorCode& status)
|
||||
:
|
||||
: UObject(),
|
||||
mRules(NULL),
|
||||
mParser(new RuleParser())
|
||||
{
|
||||
if (mParser==NULL) {
|
||||
status = U_MEMORY_ALLOCATION_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
PluralRules::PluralRules(const PluralRules& other)
|
||||
|
|
Loading…
Add table
Reference in a new issue