uxtheme: Turn a variable and a constant into static constants.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2018-12-03 21:42:59 -07:00 committed by Alexandre Julliard
parent 6a1a2e8288
commit 53c8abbf8a
2 changed files with 4 additions and 4 deletions

View File

@ -165,9 +165,7 @@ HRESULT WINAPI GetThemeSysInt(HTHEME hTheme, int iIntID, int *piValue)
*/ */
int WINAPI GetThemeSysSize(HTHEME hTheme, int iSizeID) int WINAPI GetThemeSysSize(HTHEME hTheme, int iSizeID)
{ {
PTHEME_PROPERTY tp; static const int metricMap[] = {
int i, id = -1;
int metricMap[] = {
SM_CXVSCROLL, TMT_SCROLLBARWIDTH, SM_CXVSCROLL, TMT_SCROLLBARWIDTH,
SM_CYHSCROLL, TMT_SCROLLBARHEIGHT, SM_CYHSCROLL, TMT_SCROLLBARHEIGHT,
SM_CXSIZE, TMT_CAPTIONBARWIDTH, SM_CXSIZE, TMT_CAPTIONBARWIDTH,
@ -179,6 +177,8 @@ int WINAPI GetThemeSysSize(HTHEME hTheme, int iSizeID)
SM_CXMENUSIZE, TMT_MENUBARWIDTH, SM_CXMENUSIZE, TMT_MENUBARWIDTH,
SM_CYMENUSIZE, TMT_MENUBARHEIGHT SM_CYMENUSIZE, TMT_MENUBARHEIGHT
}; };
PTHEME_PROPERTY tp;
int i, id = -1;
if(hTheme) { if(hTheme) {
for(i=0; i<ARRAY_SIZE(metricMap); i+=2) { for(i=0; i<ARRAY_SIZE(metricMap); i+=2) {

View File

@ -813,7 +813,7 @@ HRESULT WINAPI GetThemeDocumentationProperty(LPCWSTR pszThemeName,
LPWSTR pszValueBuff, LPWSTR pszValueBuff,
int cchMaxValChars) int cchMaxValChars)
{ {
const WORD wDocToRes[] = { static const WORD wDocToRes[] = {
TMT_DISPLAYNAME,5000, TMT_DISPLAYNAME,5000,
TMT_TOOLTIP,5001, TMT_TOOLTIP,5001,
TMT_COMPANY,5002, TMT_COMPANY,5002,