summaryrefslogtreecommitdiff
path: root/vcl/osx/PictToBmpFlt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/osx/PictToBmpFlt.cxx')
-rw-r--r--vcl/osx/PictToBmpFlt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/PictToBmpFlt.cxx b/vcl/osx/PictToBmpFlt.cxx
index 77c67a654107..5300c9905569 100644
--- a/vcl/osx/PictToBmpFlt.cxx
+++ b/vcl/osx/PictToBmpFlt.cxx
@@ -32,7 +32,7 @@ bool ImageToPNG( com::sun::star::uno::Sequence<sal_Int8>& rImgData,
{
(void) eInFormat; // Really not needed? Weird.
- NSData* pData = [NSData dataWithBytesNoCopy: (void*)rImgData.getConstArray() length: rImgData.getLength() freeWhenDone: 0];
+ NSData* pData = [NSData dataWithBytesNoCopy: const_cast<sal_Int8 *>(rImgData.getConstArray()) length: rImgData.getLength() freeWhenDone: 0];
if( !pData)
return false;