Merge to XF: Add constructor for CPDF_ColorSpace.
[pdfium.git] / core / include / fpdfapi / fpdf_resource.h
index 2787d97..fe2a1e4 100644 (file)
@@ -644,11 +644,17 @@ public:
     }
 
     virtual void                       EnableStdConversion(FX_BOOL bEnabled);
-    CPDF_Document*                     m_pDocument;
-protected:
 
-    CPDF_ColorSpace();
+    CPDF_Document* const m_pDocument;
 
+protected:
+    CPDF_ColorSpace(CPDF_Document* pDoc, int family, int nComponents)
+        : m_pDocument(pDoc),
+          m_Family(family),
+          m_nComponents(nComponents),
+          m_pArray(nullptr),
+          m_dwStdConversion(0) {
+    }
     virtual ~CPDF_ColorSpace() {}
     virtual FX_BOOL                    v_Load(CPDF_Document* pDoc, CPDF_Array* pArray)
     {