Clean up C-style casts from pointers to void
Change-Id: Ie42bd7a48391615ea8f48b24d6bfe2bbebb31a0b
This commit is contained in:
@@ -783,7 +783,7 @@ helpOpen(const char * URI) {
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
helpRead(void * context, char * buffer, int len) {
|
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;
|
Sequence< sal_Int8 > aSeq;
|
||||||
len = (*pRef)->readBytes( aSeq,len);
|
len = (*pRef)->readBytes( aSeq,len);
|
||||||
@@ -800,7 +800,7 @@ zipRead(void * context, char * buffer, int len) {
|
|||||||
static int
|
static int
|
||||||
fileRead(void * context, char * buffer, int len) {
|
fileRead(void * context, char * buffer, int len) {
|
||||||
int nRead = 0;
|
int nRead = 0;
|
||||||
osl::File *pFile = (osl::File*)context;
|
osl::File *pFile = static_cast<osl::File*>(context);
|
||||||
if (pFile)
|
if (pFile)
|
||||||
{
|
{
|
||||||
sal_uInt64 uRead = 0;
|
sal_uInt64 uRead = 0;
|
||||||
@@ -812,14 +812,14 @@ fileRead(void * context, char * buffer, int len) {
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
uriClose(void * context) {
|
uriClose(void * context) {
|
||||||
Reference< XInputStream > *pRef = (Reference< XInputStream >*)context;
|
Reference< XInputStream > *pRef = static_cast<Reference< XInputStream >*>(context);
|
||||||
delete pRef;
|
delete pRef;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
fileClose(void * context) {
|
fileClose(void * context) {
|
||||||
osl::File *pFile = (osl::File*)context;
|
osl::File *pFile = static_cast<osl::File*>(context);
|
||||||
if (pFile)
|
if (pFile)
|
||||||
{
|
{
|
||||||
pFile->close();
|
pFile->close();
|
||||||
|
Reference in New Issue
Block a user