summaryrefslogtreecommitdiff
path: root/svl/source/svdde/ddecli.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-22 13:11:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-23 07:54:51 +0100
commit9af8f190ed1bf3f76897ad0c078db16451d6fb69 (patch)
tree015089ee72a67eca7db999845cabb8104c8ce3aa /svl/source/svdde/ddecli.cxx
parent9602e63c818722c3910343b7af53917d031861c8 (diff)
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 <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl/source/svdde/ddecli.cxx')
-rw-r--r--svl/source/svdde/ddecli.cxx12
1 files changed, 6 insertions, 6 deletions
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<DWORD>((*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<DWORD>(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<LPBYTE>(const_cast<void *>(pData)),
nData, rDde.pImp->hConv,
- hItem, nExtFmt, (UINT)nType,
- (DWORD)nTime, nullptr );
+ hItem, nExtFmt, static_cast<UINT>(nType),
+ static_cast<DWORD>(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<LPBYTE>(const_cast<void *>(pData)), nData,
rDde.pImp->hConv, hItem, nExtFmt,
- (UINT)nType, TIMEOUT_ASYNC,
+ static_cast<UINT>(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;
}