Kaydet (Commit) 59d5d634 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:cstylecast: sal

Change-Id: I1ca982dc8c35c7a2762572d7bb47066ead8e6c89
üst 83922317
......@@ -116,7 +116,7 @@ namespace osl
*/
Result wait(const TimeValue *pTimeout = NULL)
{
return (Result) osl_waitCondition(condition, pTimeout);
return static_cast<Result>(osl_waitCondition(condition, pTimeout));
}
#if defined LIBO_INTERNAL_ONLY
......
......@@ -1755,7 +1755,7 @@ public:
osl_releaseDirectoryItem( rItem._pData );
rItem._pData = NULL;
}
return ( RC) osl_getNextDirectoryItem( _pData, &rItem._pData, nHint );
return static_cast<RC>(osl_getNextDirectoryItem( _pData, &rItem._pData, nHint ));
}
......
......@@ -95,13 +95,13 @@ static const unsigned long FamilyMap[]= {
static oslAddrFamily osl_AddrFamilyFromNative(sal_uInt32 nativeType)
{
oslAddrFamily i= (oslAddrFamily)0;
oslAddrFamily i= oslAddrFamily(0);
while(i != osl_Socket_FamilyInvalid)
{
if(FamilyMap[i] == nativeType)
return i;
i = (oslAddrFamily) ( i + 1 );
i = static_cast<oslAddrFamily>( i + 1 );
}
return i;
......@@ -131,13 +131,13 @@ static const sal_uInt32 TypeMap[]= {
static oslSocketType osl_SocketTypeFromNative(sal_uInt32 nativeType)
{
oslSocketType i= (oslSocketType)0;
oslSocketType i= oslSocketType(0);
while(i != osl_Socket_TypeInvalid)
{
if(TypeMap[i] == nativeType)
return i;
i = (oslSocketType)(i + 1);
i = static_cast<oslSocketType>(i + 1);
}
return i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment