diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:08:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:29 +0100 |
commit | 1bfdea75d23d79e8b0d2d7c1548d716d0ca27488 (patch) | |
tree | 4bc8683534012c9d19da0a9816f9fe13ad918f1a /xmlhelp | |
parent | 18804c92e10c7f4572b9698b1cf6dc86db8d6f32 (diff) |
Clean up C-style casts from pointers to void
Change-Id: Ie42bd7a48391615ea8f48b24d6bfe2bbebb31a0b
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 6deea999a7e9..6c86d789e587 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -783,7 +783,7 @@ helpOpen(const char * URI) { static int helpRead(void * context, char * buffer, int len) { - Reference< XInputStream > *pRef = (Reference< XInputStream >*)context; + Reference< XInputStream > *pRef = static_cast<Reference< XInputStream >*>(context); Sequence< sal_Int8 > aSeq; len = (*pRef)->readBytes( aSeq,len); @@ -800,7 +800,7 @@ zipRead(void * context, char * buffer, int len) { static int fileRead(void * context, char * buffer, int len) { int nRead = 0; - osl::File *pFile = (osl::File*)context; + osl::File *pFile = static_cast<osl::File*>(context); if (pFile) { sal_uInt64 uRead = 0; @@ -812,14 +812,14 @@ fileRead(void * context, char * buffer, int len) { static int uriClose(void * context) { - Reference< XInputStream > *pRef = (Reference< XInputStream >*)context; + Reference< XInputStream > *pRef = static_cast<Reference< XInputStream >*>(context); delete pRef; return 0; } static int fileClose(void * context) { - osl::File *pFile = (osl::File*)context; + osl::File *pFile = static_cast<osl::File*>(context); if (pFile) { pFile->close(); |