Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: fpdfsdk/src/fpdf_transformpage.cpp

Issue 1171733003: Remove typdefs for pointer types in fx_system.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual fixes. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/fpdf_sysfontinfo.cpp ('k') | fpdfsdk/src/fpdfdoc.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../public/fpdf_transformpage.h" 7 #include "../../public/fpdf_transformpage.h"
8 #include "../include/fsdk_define.h" 8 #include "../include/fsdk_define.h"
9 9
10 DLLEXPORT void STDCALL FPDFPage_SetMediaBox(FPDF_PAGE page, float left, float bo ttom, float right, float top) 10 DLLEXPORT void STDCALL FPDFPage_SetMediaBox(FPDF_PAGE page, float left, float bo ttom, float right, float top)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 CPDF_Dictionary* pDic = new CPDF_Dictionary; 104 CPDF_Dictionary* pDic = new CPDF_Dictionary;
105 CPDF_Stream* pStream = new CPDF_Stream(NULL,0, pDic); 105 CPDF_Stream* pStream = new CPDF_Stream(NULL,0, pDic);
106 pStream->SetData(textBuf.GetBuffer(), textBuf.GetSize(), FALSE, FALSE); 106 pStream->SetData(textBuf.GetBuffer(), textBuf.GetSize(), FALSE, FALSE);
107 CPDF_Document* pDoc = pPage->m_pDocument; 107 CPDF_Document* pDoc = pPage->m_pDocument;
108 if(!pDoc) 108 if(!pDoc)
109 return FALSE; 109 return FALSE;
110 pDoc->AddIndirectObject(pStream); 110 pDoc->AddIndirectObject(pStream);
111 111
112 pDic = new CPDF_Dictionary; 112 pDic = new CPDF_Dictionary;
113 CPDF_Stream* pEndStream = new CPDF_Stream(NULL,0, pDic); 113 CPDF_Stream* pEndStream = new CPDF_Stream(NULL,0, pDic);
114 » pEndStream->SetData((FX_LPCBYTE)" Q", 2, FALSE, FALSE); 114 » pEndStream->SetData((const uint8_t*)" Q", 2, FALSE, FALSE);
115 pDoc->AddIndirectObject(pEndStream); 115 pDoc->AddIndirectObject(pEndStream);
116 116
117 CPDF_Array* pContentArray = NULL; 117 CPDF_Array* pContentArray = NULL;
118 if (pContentObj && pContentObj->GetType() == PDFOBJ_ARRAY) 118 if (pContentObj && pContentObj->GetType() == PDFOBJ_ARRAY)
119 { 119 {
120 pContentArray = (CPDF_Array*)pContentObj; 120 pContentArray = (CPDF_Array*)pContentObj;
121 CPDF_Reference* pRef = new CPDF_Reference(pDoc, pStream->GetObjN um()); 121 CPDF_Reference* pRef = new CPDF_Reference(pDoc, pStream->GetObjN um());
122 pContentArray->InsertAt(0, pRef); 122 pContentArray->InsertAt(0, pRef);
123 pContentArray->AddReference(pDoc,pEndStream); 123 pContentArray->AddReference(pDoc,pEndStream);
124 124
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 { 312 {
313 pContentArray = new CPDF_Array(); 313 pContentArray = new CPDF_Array();
314 pContentArray->AddReference(pDoc,pStream->GetObj Num()); 314 pContentArray->AddReference(pDoc,pStream->GetObj Num());
315 pContentArray->AddReference(pDoc,pDirectObj->Get ObjNum()); 315 pContentArray->AddReference(pDoc,pDirectObj->Get ObjNum());
316 pPageDic->SetAtReference("Contents", pDoc, pDoc- >AddIndirectObject(pContentArray)); 316 pPageDic->SetAtReference("Contents", pDoc, pDoc- >AddIndirectObject(pContentArray));
317 } 317 }
318 } 318 }
319 } 319 }
320 } 320 }
321 321
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdf_sysfontinfo.cpp ('k') | fpdfsdk/src/fpdfdoc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698