[SHELL32] CDefView.cpp: fix MSVC build warning C5208

"unnamed class used in typedef name cannot declare members other than
non-static data members, member enumerations, or member classes."

Suggestion by Whindmar Saksit.

Use `struct LISTVIEW_SORT_INFO` instead of the typedef, since this
is a structure defined and used only in this file, and we don't use
pointers to it (LPLISTVIEW_SORT_INFO).
This commit is contained in:
Hermès Bélusca-Maïto 2024-09-10 15:09:58 +02:00
parent 945e856031
commit 0293d0c597
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -58,7 +58,7 @@ enum {
};
#undef FCIDM_SHVIEWLAST // Don't use this constant, change DVIDM_CONTEXTMENU_LAST if you need a new id.
typedef struct
struct LISTVIEW_SORT_INFO
{
INT8 Direction;
bool bLoadedFromViewState;
@ -72,7 +72,7 @@ typedef struct
*(UINT*)this = 0;
ListColumn = UNSPECIFIEDCOLUMN;
}
} LISTVIEW_SORT_INFO, *LPLISTVIEW_SORT_INFO;
};
#define SHV_CHANGE_NOTIFY (WM_USER + 0x1111)
#define SHV_UPDATESTATUSBAR (WM_USER + 0x1112)