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

Revert "coverity#1038286 Logically dead code"

This reverts commit f5adf08a.
üst 49836e6f
...@@ -137,6 +137,22 @@ static void lclMatchKeyword(OUString& rName, const ScCellKeywordHashMap& aMap, ...@@ -137,6 +137,22 @@ static void lclMatchKeyword(OUString& rName, const ScCellKeywordHashMap& aMap,
return; 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. // No preferred strings found. Return the best matching name.
......
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