diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:03:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:03:52 +0100 |
commit | 59d5d63498a781c8681ee8c3199f95253145b8b7 (patch) | |
tree | ca414e13bf2767cb1d1d3bbaa9e8035a4494f4fb | |
parent | 83922317915f06561e621caddc91512829609ec1 (diff) |
More loplugin:cstylecast: sal
Change-Id: I1ca982dc8c35c7a2762572d7bb47066ead8e6c89
-rw-r--r-- | include/osl/conditn.hxx | 2 | ||||
-rw-r--r-- | include/osl/file.hxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/socket.cxx | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/osl/conditn.hxx b/include/osl/conditn.hxx index 2bfe5466ba34..7bb09d5739d6 100644 --- a/include/osl/conditn.hxx +++ b/include/osl/conditn.hxx @@ -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 diff --git a/include/osl/file.hxx b/include/osl/file.hxx index 3c2848eaa590..73065a4ebcec 100644 --- a/include/osl/file.hxx +++ b/include/osl/file.hxx @@ -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 )); } diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx index 0ab10f3b07ac..347c3e915686 100644 --- a/sal/osl/unx/socket.cxx +++ b/sal/osl/unx/socket.cxx @@ -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; |