From 9af8f190ed1bf3f76897ad0c078db16451d6fb69 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 22 Jan 2018 13:11:34 +0100 Subject: More loplugin:cstylecast on Windows Automatic rewrite (of loplugin:cstylecast and loplugin:unnecessaryparen) after cab0427cadddb3aaf1349c66f2fa13a4234ba4b2 "Enable loplugin:cstylecast for some more cases" and a409d32e7f6fc09e041079d6dbc3c927497adfed "More loplugin:cstylecast" Change-Id: Ib3355159dd08333e1b7a8d091caf2069cdcc7862 Reviewed-on: https://gerrit.libreoffice.org/48317 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- dtrans/source/win32/dnd/source.cxx | 2 +- dtrans/source/win32/dtobj/FmtFilter.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'dtrans') diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx index 06c8e4977def..5b1bc1d3d1b3 100644 --- a/dtrans/source/win32/dnd/source.cxx +++ b/dtrans/source/win32/dnd/source.cxx @@ -211,7 +211,7 @@ HRESULT STDMETHODCALLTYPE DragSource::QueryInterface( REFIID riid, void **ppvOb ULONG STDMETHODCALLTYPE DragSource::AddRef() { acquire(); - return (ULONG) m_refCount; + return static_cast(m_refCount); } ULONG STDMETHODCALLTYPE DragSource::Release() diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx index 2931521511fb..1dcc089c7b9d 100644 --- a/dtrans/source/win32/dtobj/FmtFilter.cxx +++ b/dtrans/source/win32/dtobj/FmtFilter.cxx @@ -423,7 +423,7 @@ Sequence< sal_Int8 > WinBITMAPToOOBMP( HBITMAP aHBMP ) pBmp->biPlanes = 1; pBmp->biBitCount = 32; pBmp->biCompression = BI_RGB; - pBmp->biSizeImage = (DWORD)nDataBytes; + pBmp->biSizeImage = static_cast(nDataBytes); pBmp->biXPelsPerMeter = 1000; pBmp->biYPelsPerMeter = 1000; pBmp->biClrUsed = 0; -- cgit