summaryrefslogtreecommitdiff
path: root/tools
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 /tools
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 'tools')
-rw-r--r--tools/source/datetime/ttime.cxx2
-rw-r--r--tools/source/stream/strmwnt.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx
index 0209c9559089..9d12bb9208e7 100644
--- a/tools/source/datetime/ttime.cxx
+++ b/tools/source/datetime/ttime.cxx
@@ -368,7 +368,7 @@ Time tools::Time::GetUTCOffset()
nTempTime += aTimeZone.StandardBias;
else if ( nTimeZoneRet == TIME_ZONE_ID_DAYLIGHT )
nTempTime += aTimeZone.DaylightBias;
- tools::Time aTime( 0, (sal_uInt16)abs( nTempTime ) );
+ tools::Time aTime( 0, static_cast<sal_uInt16>(abs( nTempTime )) );
if ( nTempTime > 0 )
aTime = -aTime;
return aTime;
diff --git a/tools/source/stream/strmwnt.cxx b/tools/source/stream/strmwnt.cxx
index 3b890fbfef1b..0dd1d2f1bd4b 100644
--- a/tools/source/stream/strmwnt.cxx
+++ b/tools/source/stream/strmwnt.cxx
@@ -87,7 +87,7 @@ static ErrCode GetSvError( DWORD nWntError )
{ ERROR_WRITE_PROTECT, SVSTREAM_ACCESS_DENIED },
{ ERROR_DISK_FULL, SVSTREAM_DISK_FULL },
- { (DWORD)0xFFFFFFFF, SVSTREAM_GENERALERROR }
+ { DWORD(0xFFFFFFFF), SVSTREAM_GENERALERROR }
};
ErrCode nRetVal = SVSTREAM_GENERALERROR; // default error
@@ -100,7 +100,7 @@ static ErrCode GetSvError( DWORD nWntError )
break;
}
i++;
- } while( errArr[i].wnt != (DWORD)0xFFFFFFFF );
+ } while( errArr[i].wnt != DWORD(0xFFFFFFFF) );
return nRetVal;
}