CID#1202769 comfort coverity

Change-Id: I84214dde71883065f1ca3737180f0d739b49d8ee
This commit is contained in:
Eike Rathke 2014-04-16 00:32:33 +02:00
parent 99b06e60ca
commit e51ca50607

View File

@ -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