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 --- svl/source/svdde/ddecli.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'svl/source/svdde/ddecli.cxx') diff --git a/svl/source/svdde/ddecli.cxx b/svl/source/svdde/ddecli.cxx index c84bb92592de..3faef58aca80 100644 --- a/svl/source/svdde/ddecli.cxx +++ b/svl/source/svdde/ddecli.cxx @@ -84,7 +84,7 @@ HDDEDATA CALLBACK DdeInternal::CliCallback( UINT nCode, UINT nCbType, switch( nCode ) { case XTYP_XACT_COMPLETE: - if( (DWORD)(*iter)->nId == nInfo1 ) + if( static_cast((*iter)->nId) == nInfo1 ) { nCode = (*iter)->nType & (XCLASS_MASK | XTYP_MASK); (*iter)->bBusy = false; @@ -270,7 +270,7 @@ void DdeTransaction::Execute() { HSZ hItem = pName->getHSZ(); void const * pData = aDdeData.getData(); - DWORD nData = (DWORD)aDdeData.getSize(); + DWORD nData = static_cast(aDdeData.getSize()); SotClipboardFormatId nIntFmt = aDdeData.xImp->nFmt; UINT nExtFmt = DdeData::GetExternalFormat( nIntFmt ); DdeInstData* pInst = ImpGetInstData(); @@ -286,8 +286,8 @@ void DdeTransaction::Execute() { HDDEDATA hData = DdeClientTransaction( static_cast(const_cast(pData)), nData, rDde.pImp->hConv, - hItem, nExtFmt, (UINT)nType, - (DWORD)nTime, nullptr ); + hItem, nExtFmt, static_cast(nType), + static_cast(nTime), nullptr ); rDde.pImp->nStatus = DdeGetLastError( pInst->hDdeInstCli ); if( hData && nType == XTYP_REQUEST ) @@ -311,7 +311,7 @@ void DdeTransaction::Execute() DWORD result; HDDEDATA hRet = DdeClientTransaction( static_cast(const_cast(pData)), nData, rDde.pImp->hConv, hItem, nExtFmt, - (UINT)nType, TIMEOUT_ASYNC, + static_cast(nType), TIMEOUT_ASYNC, &result ); nId = result; rDde.pImp->nStatus = hRet ? DMLERR_NO_ERROR @@ -349,7 +349,7 @@ DdeLink::DdeLink( DdeConnection& d, const OUString& aItemName, long n ) DdeLink::~DdeLink() { - nType = (sal_uInt16)XTYP_ADVSTOP; + nType = sal_uInt16(XTYP_ADVSTOP); nTime = 0; } -- cgit