diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:50:26 +0200 |
commit | f8cb76ace55fa608f9a6b0f572ffc778cae5d0c4 (patch) | |
tree | fdbb910fb78267a5de39a1205ccd81586f3241e5 /sal | |
parent | d5cb535017888c2ea5494384092bc86175802454 (diff) |
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: Ia7902a4bf2ec9bc995dfa065fe9e2eb092613683
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/profile.cxx | 2 | ||||
-rw-r--r-- | sal/osl/unx/socket.cxx | 6 | ||||
-rw-r--r-- | sal/qa/rtl/process/rtl_Process.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx index 00d0b44e8219..abffd33d105c 100644 --- a/sal/osl/unx/profile.cxx +++ b/sal/osl/unx/profile.cxx @@ -1577,7 +1577,7 @@ static bool loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile) for (i = 0; i < pProfile->m_NoLines; i++) { - pStr = (sal_Char *)stripBlanks(pProfile->m_Lines[i], NULL); + pStr = stripBlanks(pProfile->m_Lines[i], NULL); if ((*pStr == '\0') || (*pStr == ';')) continue; diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx index 0e5a1f0da0b0..6aba809bce4f 100644 --- a/sal/osl/unx/socket.cxx +++ b/sal/osl/unx/socket.cxx @@ -1009,7 +1009,7 @@ oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr (const oslHostAddr pAddr) SAL_WARN_IF( !pAddr, "sal.osl", "undefined address" ); if (pAddr) - return (oslSocketAddr)pAddr->pSockAddr; + return pAddr->pSockAddr; else return NULL; } @@ -1121,7 +1121,7 @@ oslSocketAddr SAL_CALL osl_resolveHostname(rtl_uString *ustrHostname) oslSocketAddr SAL_CALL osl_psz_resolveHostname(const sal_Char* pszHostname) { - struct oslHostAddrImpl *pAddr = (oslHostAddr)osl_psz_createHostAddrByName(pszHostname); + struct oslHostAddrImpl *pAddr = osl_psz_createHostAddrByName(pszHostname); if (pAddr) { @@ -1255,7 +1255,7 @@ oslSocketResult SAL_CALL osl_getHostnameOfSocketAddr(oslSocketAddr Addr, rtl_uSt oslSocketResult SAL_CALL osl_psz_getHostnameOfSocketAddr(oslSocketAddr pAddr, sal_Char *pBuffer, sal_uInt32 BufferSize) { - oslHostAddr pHostAddr= (oslHostAddr )osl_createHostAddrByAddr(pAddr); + oslHostAddr pHostAddr= osl_createHostAddrByAddr(pAddr); if (pHostAddr) { diff --git a/sal/qa/rtl/process/rtl_Process.cxx b/sal/qa/rtl/process/rtl_Process.cxx index 1cbfb58e073c..3c709f0550ea 100644 --- a/sal/qa/rtl/process/rtl_Process.cxx +++ b/sal/qa/rtl/process/rtl_Process.cxx @@ -187,10 +187,10 @@ void printUuidtoBuffer( sal_uInt8 *pNode, sal_Char * pBuffer ) sal_uInt8 nValue = pNode[i1]; if (nValue < 16) { - sprintf( (sal_Char *)(pBuffer + nPtr), "0"); + sprintf( pBuffer + nPtr, "0"); nPtr++; } - sprintf( (sal_Char *)(pBuffer + nPtr), "%02x", nValue ); + sprintf( pBuffer + nPtr, "%02x", nValue ); nPtr += 2 ; } } |