Kaydet (Commit) e45b962f authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck scope reduction in vcl/..salatsuifontutils.cxx

üst 3cf7144e
...@@ -237,7 +237,6 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF ...@@ -237,7 +237,6 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
return false; return false;
int nBestNameValue = 0; int nBestNameValue = 0;
int nBestStyleValue = 0; int nBestStyleValue = 0;
FontLanguageCode eBestLangCode = 0;
const FontLanguageCode eUILangCode = Application::GetSettings().GetUILanguage(); const FontLanguageCode eUILangCode = Application::GetSettings().GetUILanguage();
typedef std::vector<char> NameBuffer; typedef std::vector<char> NameBuffer;
NameBuffer aNameBuffer( 256 ); NameBuffer aNameBuffer( 256 );
...@@ -333,7 +332,7 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF ...@@ -333,7 +332,7 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
{ {
// get the best family name // get the best family name
nBestNameValue = nNameValue; nBestNameValue = nNameValue;
eBestLangCode = eFontNameLanguage; FontLanguageCode eBestLangCode = eFontNameLanguage;
rDFA.maName = aUtf16Name; rDFA.maName = aUtf16Name;
} }
break; break;
......
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