diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-22 13:08:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-22 22:01:00 +0100 |
commit | d4b7c6fabb4973e71ac2ce6b456b03d3d54c759a (patch) | |
tree | f038fb5c32228a735fd6a9621efaf64421b7ccc7 /shell/source | |
parent | 9a188a0a04ce71f088e585a1b6583994f1b80992 (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell/source')
-rwxr-xr-x[-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 a3143f966ae6..87a8f591f393 100644..100755 --- 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<LPARAM>(pcol)) + static_cast<int>(SNDMSG((hwnd), LVM_INSERTCOLUMNW, WPARAM(int(iCol)), reinterpret_cast<LPARAM>(pcol))) #endif #if !defined ListView_InsertItemW #define ListView_InsertItemW(hwnd, pitem) \ - (int)SNDMSG((hwnd), LVM_INSERTITEMW, 0, reinterpret_cast<LPARAM>(pitem)) + static_cast<int>(SNDMSG((hwnd), LVM_INSERTITEMW, 0, reinterpret_cast<LPARAM>(pitem))) #endif #if !defined ListView_SetItemW #define ListView_SetItemW(hwnd, pitem) \ - (BOOL)SNDMSG((hwnd), LVM_SETITEMW, 0, reinterpret_cast<LPARAM>(pitem)) + static_cast<BOOL>(SNDMSG((hwnd), LVM_SETITEMW, 0, reinterpret_cast<LPARAM>(pitem))) #endif |