diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-09-26 08:33:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-09-26 08:33:38 +0200 |
commit | a385dcd02001fc9ce26bf994956db0a704d5764b (patch) | |
tree | 4b44e23a78f0aa3a7a60261dee62de6cec950717 /shell | |
parent | 1bfcde620f82e17205b75f020e632657505f1d8b (diff) |
loplugin:cstylecast (clang-cl)
Change-Id: Ic61a2d58e260e11f3698524891201e8b761c97fc
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx b/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx index b7149429d4fa..a7b8c231cbca 100644 --- a/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx +++ b/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx @@ -33,17 +33,17 @@ // Unicode-only defines to break dependence on UNICODE define #if !defined ListView_InsertColumnW #define ListView_InsertColumnW(hwnd, iCol, pcol) \ - (int)SNDMSG((hwnd), LVM_INSERTCOLUMNW, (WPARAM)(int)(iCol), (LPARAM)(const LV_COLUMNW *)(pcol)) + (int)SNDMSG((hwnd), LVM_INSERTCOLUMNW, (WPARAM)(int)(iCol), reinterpret_cast<LPARAM>(const_cast<const LV_COLUMNW *>(pcol))) #endif #if !defined ListView_InsertItemW #define ListView_InsertItemW(hwnd, pitem) \ - (int)SNDMSG((hwnd), LVM_INSERTITEMW, 0, (LPARAM)(const LV_ITEMW *)(pitem)) + (int)SNDMSG((hwnd), LVM_INSERTITEMW, 0, reinterpret_cast<LPARAM>(const_cast<const LV_ITEMW *>(pitem))) #endif #if !defined ListView_SetItemW #define ListView_SetItemW(hwnd, pitem) \ - (BOOL)SNDMSG((hwnd), LVM_SETITEMW, 0, (LPARAM)(const LV_ITEMW *)(pitem)) + (BOOL)SNDMSG((hwnd), LVM_SETITEMW, 0, reinterpret_cast<LPARAM>(const_cast<const LV_ITEMW *>(pitem))) #endif |