Kaydet (Commit) e51ca506 authored tarafından Eike Rathke's avatar Eike Rathke

CID#1202769 comfort coverity

Change-Id: I84214dde71883065f1ca3737180f0d739b49d8ee
üst 99b06e60
......@@ -1976,10 +1976,16 @@ bool LanguageTagImpl::isIsoODF() const
{
const_cast<LanguageTagImpl*>(this)->synCanonicalize();
if (!LanguageTag::isIsoScript( getScript()))
return ((meIsIsoODF = DECISION_NO) == DECISION_YES);
{
meIsIsoODF = DECISION_NO;
return false;
}
// The usual case is lll-CC so simply check that first.
if (isIsoLocale())
return ((meIsIsoODF = DECISION_YES) == DECISION_YES);
{
meIsIsoODF = DECISION_YES;
return true;
}
// If this is not ISO locale for which script must not exist it can
// still be ISO locale plus ISO script lll-Ssss-CC, but not ll-vvvv ...
// ll-vvvvvvvv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment