canvas/source/directx/dx_9rm.cxx | 4 ++-- shell/source/win32/shlxthandler/infotips/infotips.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 99377fd4d1c7fd72fc05999d01be6755b672cdfe Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jun 2 10:35:45 2017 +0200 loplugin:redundantcast (clang-cl) Change-Id: I465469471dc95e5dd61ecafd8ee8c9424b1b8030 diff --git a/shell/source/win32/shlxthandler/infotips/infotips.cxx b/shell/source/win32/shlxthandler/infotips/infotips.cxx index aff286d7b68c..9028b69ed55f 100644 --- a/shell/source/win32/shlxthandler/infotips/infotips.cxx +++ b/shell/source/win32/shlxthandler/infotips/infotips.cxx @@ -127,8 +127,8 @@ DWORD getSizeOfFile( char* FileName ) if (hFile != INVALID_HANDLE_VALUE) { - DWORD dwSize = GetFileSize( HANDLE(hFile), nullptr ); - CloseHandle( HANDLE(hFile) ); + DWORD dwSize = GetFileSize( hFile, nullptr ); + CloseHandle( hFile ); return dwSize; } commit 841d8a60935ea59b7ba7efb9788dc2ec40cf5689 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jun 2 10:35:29 2017 +0200 loplugin:redundantcast (clang-cl) Change-Id: Ic61ed0cb1d64b27abe0007e28c7b261de3ab7114 diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx index 2e755ee4d61f..c12f64a9be05 100644 --- a/canvas/source/directx/dx_9rm.cxx +++ b/canvas/source/directx/dx_9rm.cxx @@ -741,9 +741,9 @@ namespace dxcanvas // a back buffer, and no way of falling back to a // different canvas implementation. ZeroMemory( &mad3dpp, sizeof(mad3dpp) ); - mad3dpp.BackBufferWidth = std::max(sal_Int32(maSize.getX()), + mad3dpp.BackBufferWidth = std::max(maSize.getX(), sal_Int32(d3ddm.Width)); - mad3dpp.BackBufferHeight = std::max(sal_Int32(maSize.getY()), + mad3dpp.BackBufferHeight = std::max(maSize.getY(), sal_Int32(d3ddm.Height)); mad3dpp.BackBufferCount = 1; mad3dpp.Windowed = TRUE; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits