From 66a0a3726adc17f1f5378c4c6de00bb930a370d5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 8 Jun 2015 16:23:52 +0200 Subject: loplugin:cstylecast: deal with remaining pointer casts Change-Id: I1ceb4359188b61e15a31750a496021c4394e1a3f --- comphelper/source/streaming/oslfile2streamwrap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comphelper/source/streaming/oslfile2streamwrap.cxx') diff --git a/comphelper/source/streaming/oslfile2streamwrap.cxx b/comphelper/source/streaming/oslfile2streamwrap.cxx index 4b9aad443b6c..4b3dd8e81606 100644 --- a/comphelper/source/streaming/oslfile2streamwrap.cxx +++ b/comphelper/source/streaming/oslfile2streamwrap.cxx @@ -51,7 +51,7 @@ sal_Int32 SAL_CALL OSLInputStreamWrapper::readBytes(css::uno::Sequence< sal_Int8 aData.realloc(nBytesToRead); sal_uInt64 nRead = 0; - FileBase::RC eError = m_pFile->read((void*)aData.getArray(), nBytesToRead, nRead); + FileBase::RC eError = m_pFile->read(static_cast(aData.getArray()), nBytesToRead, nRead); if (eError != FileBase::E_None) throw css::io::BufferSizeExceededException(OUString(),static_cast(this)); -- cgit