| Index: core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp
|
| index 640e8671f8cfbc4db6edbb82cc8478401a481f37..10b0272b5246211dc5e2f5f07105b0d8e95db52b 100644
|
| --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp
|
| +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp
|
| @@ -51,7 +51,7 @@ CPDF_Dictionary* CPDF_Image::InitJPEG(uint8_t* pData, FX_DWORD size) {
|
| m_bIsMask = FALSE;
|
| m_Width = width;
|
| m_Height = height;
|
| - if (m_pStream == NULL) {
|
| + if (!m_pStream) {
|
| m_pStream = new CPDF_Stream(NULL, 0, NULL);
|
| }
|
| return pDict;
|
| @@ -367,7 +367,7 @@ void CPDF_Image::SetImage(const CFX_DIBitmap* pBitmap,
|
| dest_buf = NULL;
|
| }
|
| }
|
| - if (m_pStream == NULL) {
|
| + if (!m_pStream) {
|
| m_pStream = new CPDF_Stream(NULL, 0, NULL);
|
| }
|
| if (!bStream) {
|
|
|