From d4b7c6fabb4973e71ac2ce6b456b03d3d54c759a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 22 Jan 2018 13:08:01 +0100 Subject: loplugin:cstylecast (clang-cl) manual fix in macro code too difficult for current rewriting plugin Change-Id: I4a2221d0cfb64dc0a0c6619cd9bc776e283da499 Reviewed-on: https://gerrit.libreoffice.org/48316 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx diff --git a/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx b/shell/source/win32/shlxthandler/propsheets/listviewbuilder.cxx old mode 100644 new mode 100755 index a3143f966ae6..87a8f591f393 --- 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), reinterpret_cast(pcol)) + static_cast(SNDMSG((hwnd), LVM_INSERTCOLUMNW, WPARAM(int(iCol)), reinterpret_cast(pcol))) #endif #if !defined ListView_InsertItemW #define ListView_InsertItemW(hwnd, pitem) \ - (int)SNDMSG((hwnd), LVM_INSERTITEMW, 0, reinterpret_cast(pitem)) + static_cast(SNDMSG((hwnd), LVM_INSERTITEMW, 0, reinterpret_cast(pitem))) #endif #if !defined ListView_SetItemW #define ListView_SetItemW(hwnd, pitem) \ - (BOOL)SNDMSG((hwnd), LVM_SETITEMW, 0, reinterpret_cast(pitem)) + static_cast(SNDMSG((hwnd), LVM_SETITEMW, 0, reinterpret_cast(pitem))) #endif -- cgit