Index: core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp |
index edcb3cab2dbc0c6dda7a23cfc812bb7c2ea12421..d1e6687999209247baca636dcbe5d7e7a2ae4599 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_image.cpp |
@@ -9,10 +9,8 @@ |
#include "core/include/fpdfapi/fpdf_page.h" |
#include "core/include/fpdfapi/fpdf_pageobj.h" |
-CPDF_ImageObject::CPDF_ImageObject() { |
- m_pImage = NULL; |
- m_Type = PDFPAGE_IMAGE; |
-} |
+CPDF_ImageObject::CPDF_ImageObject() |
+ : CPDF_PageObject(IMAGE), m_pImage(nullptr) {} |
CPDF_ImageObject::~CPDF_ImageObject() { |
if (!m_pImage) { |
return; |