mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[0.4.15][SHELL32] CDefView.cpp: fix MSVC build warning C5208
This is a cherry-pick the master-commit 0.4.15-dev-8637-g0293d0c597
which was one of two commits that were pushed concurrently to me creating the releases/0.4.15 branch, which I branched at 0.4.15-dev-8636-g945e856031
but before the "0.4.16-dev" git tag was created. To make sure they won't end up in no-mans-land. [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). (cherry picked from commit0293d0c597
)
This commit is contained in:
parent
bceb3112fd
commit
9b8bab9999
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue