From af7e9ecd1fdd9a3499da7fc2721c4e4a74d8542f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 19 Jun 2018 17:11:19 +0200 Subject: Replace typedef struct with struct in POD type declarations. --- src/ui/dialog/filedialogimpl-win32.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui/dialog/filedialogimpl-win32.cpp') diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp index 0effddfed..c57594551 100644 --- a/src/ui/dialog/filedialogimpl-win32.cpp +++ b/src/ui/dialog/filedialogimpl-win32.cpp @@ -1097,7 +1097,7 @@ bool FileOpenDialogImplWin32::set_image_preview() // for the bbox rectangle. #pragma pack( push ) #pragma pack( 2 ) -typedef struct +struct APMHEADER { DWORD dwKey; WORD hmf; @@ -1105,7 +1105,8 @@ typedef struct WORD wInch; DWORD dwReserved; WORD wCheckSum; -} APMHEADER, *PAPMHEADER; +}; +using PAPMHEADER = APMHEADER *; #pragma pack( pop ) -- cgit v1.2.3