summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:27:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:27:22 +0200
commit30b089fe491b391931470e960b4af2ccaca9408a (patch)
tree268669b4faa689c048abe489ac4581c846ebe80c /sal/osl/unx/file.cxx
parente56bec5ccd7bdd91e0389381dc4e2f1e48f2c32d (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Ibd373cddb1e25f05528e627349953b5f7d115330
Diffstat (limited to 'sal/osl/unx/file.cxx')
-rw-r--r--sal/osl/unx/file.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index aa918c8d6565..09c50471e7cb 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -729,7 +729,7 @@ oslFileHandle osl::detail::createFileHandleFromFD( int fd )
}
SAL_INFO("sal.file", "osl::detail::createFileHandleFromFD(" << pImpl->m_fd << ", writeable) => " << pImpl->m_strFilePath);
- return (oslFileHandle)pImpl;
+ return static_cast<oslFileHandle>(pImpl);
}
static int osl_file_adjustLockFlags (const char * path, int flags)
@@ -998,7 +998,7 @@ openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_uInt32 uFlags,
SAL_INFO("sal.file", "osl_openFile(" << cpFilePath << ", " << (flags & O_RDWR ? "writeable":"readonly") << ") => " << pImpl->m_fd);
- *pHandle = (oslFileHandle)(pImpl);
+ *pHandle = static_cast<oslFileHandle>(pImpl);
return osl_File_E_None;
}