Revert "coverity#1038286 Logically dead code"
This reverts commit f5adf08aa3
.
This commit is contained in:
@@ -137,6 +137,22 @@ static void lclMatchKeyword(OUString& rName, const ScCellKeywordHashMap& aMap,
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if ( !eOpCode && pLocale )
|
||||
{
|
||||
LocaleMatch eLevel = lclLocaleCompare(itrList->mrLocale, aLanguageTag);
|
||||
if ( eLevel == LOCALE_MATCH_ALL )
|
||||
{
|
||||
// Name with matching locale preferred.
|
||||
rName = OUString::createFromAscii( itrList->mpName );
|
||||
return;
|
||||
}
|
||||
else if ( eLevel > eLocaleMatchLevel )
|
||||
{
|
||||
// Name with a better matching locale.
|
||||
eLocaleMatchLevel = eLevel;
|
||||
aBestMatchName = itrList->mpName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// No preferred strings found. Return the best matching name.
|
||||
|
Reference in New Issue
Block a user