diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:29:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:29:59 +0200 |
commit | e7b4225fc8dbc8482150163b0e0c26f1fc3a7449 (patch) | |
tree | 2ceaec08f8cb37edbaa9e58ddba686845c142c79 /xmlhelp/source/cxxhelp/provider/urlparameter.cxx | |
parent | ced1ffc2d91e0eeac14fedb94f7f31532d3e8f22 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I4e24ee646763e758a404bf0832e31e5cebc9d71d
Diffstat (limited to 'xmlhelp/source/cxxhelp/provider/urlparameter.cxx')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 3db0233a09c7..277405700521 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -712,7 +712,7 @@ zipOpen(SAL_UNUSED_PARAMETER const char *) { OUString language,jar,path; if( !ugblData->m_pInitial->get_eid().isEmpty() ) - return (void*)(new Reference< XHierarchicalNameAccess >); + return static_cast<void*>(new Reference< XHierarchicalNameAccess >); else { jar = ugblData->m_pInitial->get_jar(); @@ -1143,8 +1143,8 @@ void InputStreamTransformer::addToBuffer( const char* buffer_,int len_ ) char* tmp = buffer; buffer = new char[ len+len_ ]; - memcpy( (void*)(buffer),(void*)(tmp),sal_uInt32( len ) ); - memcpy( (void*)(buffer+len),(void*)(buffer_),sal_uInt32( len_ ) ); + memcpy( static_cast<void*>(buffer),static_cast<void*>(tmp),sal_uInt32( len ) ); + memcpy( static_cast<void*>(buffer+len),static_cast<void const *>(buffer_),sal_uInt32( len_ ) ); delete[] tmp; len += len_; } |