Index: xfa/fxfa/app/xfa_ffwidget.cpp |
diff --git a/xfa/fxfa/app/xfa_ffwidget.cpp b/xfa/fxfa/app/xfa_ffwidget.cpp |
index 0192c8b46cd467cb1c90202cbe2292d23aec86ed..ebe04f15c2fb0bfc4bd0ae88d432f9fb302c7137 100644 |
--- a/xfa/fxfa/app/xfa_ffwidget.cpp |
+++ b/xfa/fxfa/app/xfa_ffwidget.cpp |
@@ -997,7 +997,7 @@ CFX_DIBitmap* XFA_LoadImageData(CXFA_FFDoc* pDoc, |
} else { |
bsContent = CFX_ByteString::FromUnicode(wsImage); |
pImageFileRead = FX_CreateMemoryStream( |
- (uint8_t*)(const uint8_t*)bsContent, bsContent.GetLength()); |
+ const_cast<uint8_t*>(bsContent.raw_str()), bsContent.GetLength()); |
} |
} else { |
CFX_WideString wsURL = wsHref; |