Kaydet (Commit) 75e3aaea authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cstylecast: deal with those that are (technically) const_cast

Change-Id: I6ca4fb09fead52c1ff311a30e3d711d92bcc0918
üst 6780db68
...@@ -99,7 +99,7 @@ const TextCacheItem& TextCache::getText(OUString const & rText, bool bIs3dText) ...@@ -99,7 +99,7 @@ const TextCacheItem& TextCache::getText(OUString const & rText, bool bIs3dText)
// TextCacheItem *pItem = new TextCacheItem(OpenGLHelper::ConvertBitmapExToRGBABuffer(aText), aText.GetSizePixel()); // TextCacheItem *pItem = new TextCacheItem(OpenGLHelper::ConvertBitmapExToRGBABuffer(aText), aText.GetSizePixel());
Bitmap aBitmap (aText.GetBitmap()); Bitmap aBitmap (aText.GetBitmap());
BitmapReadAccess *pAcc = aBitmap.AcquireReadAccess(); 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 nBmpWidth = aText.GetSizePixel().Width();
long nBmpHeight = aText.GetSizePixel().Height(); long nBmpHeight = aText.GetSizePixel().Height();
sal_uInt8* pBitmapBuf(new sal_uInt8[3* nBmpWidth * nBmpHeight]); sal_uInt8* pBitmapBuf(new sal_uInt8[3* nBmpWidth * nBmpHeight]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment