diff options
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdf_editimg.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/fpdf_editpath.cpp | 4 | ||||
-rw-r--r-- | fpdfsdk/fpdf_edittext.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/fpdf_editimg.cpp b/fpdfsdk/fpdf_editimg.cpp index fed1581e2d..0e95add851 100644 --- a/fpdfsdk/fpdf_editimg.cpp +++ b/fpdfsdk/fpdf_editimg.cpp @@ -87,7 +87,7 @@ FPDFPageObj_NewImageObj(FPDF_DOCUMENT document) { if (!pDoc) return nullptr; - auto pImageObj = pdfium::MakeUnique<CPDF_ImageObject>(); + auto pImageObj = pdfium::MakeUnique<CPDF_ImageObject>(-1); pImageObj->SetImage(pdfium::MakeRetain<CPDF_Image>(pDoc)); // Caller takes ownership. diff --git a/fpdfsdk/fpdf_editpath.cpp b/fpdfsdk/fpdf_editpath.cpp index 70a558d2f1..102292eb3f 100644 --- a/fpdfsdk/fpdf_editpath.cpp +++ b/fpdfsdk/fpdf_editpath.cpp @@ -46,7 +46,7 @@ CPDF_PathObject* CPDFPathObjectFromFPDFPageObject(FPDF_PAGEOBJECT page_object) { FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewPath(float x, float y) { - auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); + auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(-1); pPathObj->m_Path.AppendPoint(CFX_PointF(x, y), FXPT_TYPE::MoveTo, false); pPathObj->DefaultStates(); @@ -58,7 +58,7 @@ FPDF_EXPORT FPDF_PAGEOBJECT FPDF_CALLCONV FPDFPageObj_CreateNewRect(float x, float y, float w, float h) { - auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(); + auto pPathObj = pdfium::MakeUnique<CPDF_PathObject>(-1); pPathObj->m_Path.AppendRect(x, y, x + w, y + h); pPathObj->DefaultStates(); diff --git a/fpdfsdk/fpdf_edittext.cpp b/fpdfsdk/fpdf_edittext.cpp index 2996a505ee..66086d866c 100644 --- a/fpdfsdk/fpdf_edittext.cpp +++ b/fpdfsdk/fpdf_edittext.cpp @@ -412,7 +412,7 @@ FPDFPageObj_NewTextObj(FPDF_DOCUMENT document, if (!pFont) return nullptr; - auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(); + auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(-1); pTextObj->m_TextState.SetFont(pFont); pTextObj->m_TextState.SetFontSize(font_size); pTextObj->DefaultStates(); @@ -498,7 +498,7 @@ FPDFPageObj_CreateTextObj(FPDF_DOCUMENT document, if (!pDoc || !pFont) return nullptr; - auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(); + auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(-1); pTextObj->m_TextState.SetFont(pDoc->LoadFont(pFont->GetFontDict())); pTextObj->m_TextState.SetFontSize(font_size); pTextObj->DefaultStates(); |