Revert "coverity#1038286 Logically dead code"

This reverts commit f5adf08aa3.
This commit is contained in:
Eike Rathke
2014-03-28 17:46:19 +01:00
parent 49836e6f67
commit b4bc7aabce

View File

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