diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:25:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:25:42 +0200 |
commit | 75e3aaeae4d8ac1bed4111a5d0fdebfdda4215d2 (patch) | |
tree | 6ce7c1ea1369f4085db1c625f35851219a6a8ed9 /chart2 | |
parent | 6780db685ed0119fcf31bd343d34c01936f7968c (diff) |
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I6ca4fb09fead52c1ff311a30e3d711d92bcc0918
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/3DChartObjects.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/main/3DChartObjects.cxx b/chart2/source/view/main/3DChartObjects.cxx index b1354c588eed..89caf0a73f3e 100644 --- a/chart2/source/view/main/3DChartObjects.cxx +++ b/chart2/source/view/main/3DChartObjects.cxx @@ -99,7 +99,7 @@ const TextCacheItem& TextCache::getText(OUString const & rText, bool bIs3dText) // TextCacheItem *pItem = new TextCacheItem(OpenGLHelper::ConvertBitmapExToRGBABuffer(aText), aText.GetSizePixel()); Bitmap aBitmap (aText.GetBitmap()); BitmapReadAccess *pAcc = aBitmap.AcquireReadAccess(); - sal_uInt8 *buf = (sal_uInt8 *)pAcc->GetBuffer(); + sal_uInt8 *buf = reinterpret_cast<sal_uInt8 *>(pAcc->GetBuffer()); long nBmpWidth = aText.GetSizePixel().Width(); long nBmpHeight = aText.GetSizePixel().Height(); sal_uInt8* pBitmapBuf(new sal_uInt8[3* nBmpWidth * nBmpHeight]); |