summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:03:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:03:52 +0100
commit59d5d63498a781c8681ee8c3199f95253145b8b7 (patch)
treeca414e13bf2767cb1d1d3bbaa9e8035a4494f4fb /sal
parent83922317915f06561e621caddc91512829609ec1 (diff)
More loplugin:cstylecast: sal
Change-Id: I1ca982dc8c35c7a2762572d7bb47066ead8e6c89
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/socket.cxx8
1 files changed, 4 insertions, 4 deletions
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;