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

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_FontMap.cpp

Issue 1089823004: Replace FX_NEW with new, remove tests from fpdfsdk (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebased Created 5 years, 8 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/jsapi/fxjs_v8.cpp ('k') | no next file » | 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 "../../include/pdfwindow/PDFWindow.h" 7 #include "../../include/pdfwindow/PDFWindow.h"
8 #include "../../include/pdfwindow/PWL_Wnd.h" 8 #include "../../include/pdfwindow/PWL_Wnd.h"
9 #include "../../include/pdfwindow/PWL_FontMap.h" 9 #include "../../include/pdfwindow/PWL_FontMap.h"
10 10
(...skipping 23 matching lines...) Expand all
34 { 34 {
35 m_pSystemHandler = pSystemHandler; 35 m_pSystemHandler = pSystemHandler;
36 } 36 }
37 37
38 CPDF_Document* CPWL_FontMap::GetDocument() 38 CPDF_Document* CPWL_FontMap::GetDocument()
39 { 39 {
40 if (!m_pPDFDoc) 40 if (!m_pPDFDoc)
41 { 41 {
42 if (CPDF_ModuleMgr::Get()) 42 if (CPDF_ModuleMgr::Get())
43 { 43 {
44 » » » m_pPDFDoc = FX_NEW CPDF_Document; 44 » » » m_pPDFDoc = new CPDF_Document;
45 m_pPDFDoc->CreateNewDoc(); 45 m_pPDFDoc->CreateNewDoc();
46 } 46 }
47 } 47 }
48 48
49 return m_pPDFDoc; 49 return m_pPDFDoc;
50 } 50 }
51 51
52 CPDF_Font* CPWL_FontMap::GetPDFFont(FX_INT32 nFontIndex) 52 CPDF_Font* CPWL_FontMap::GetPDFFont(FX_INT32 nFontIndex)
53 { 53 {
54 if (nFontIndex >=0 && nFontIndex < m_aData.GetSize()) 54 if (nFontIndex >=0 && nFontIndex < m_aData.GetSize())
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 } 592 }
593 593
594 CPWL_DocFontMap::~CPWL_DocFontMap() 594 CPWL_DocFontMap::~CPWL_DocFontMap()
595 { 595 {
596 } 596 }
597 597
598 CPDF_Document* CPWL_DocFontMap::GetDocument() 598 CPDF_Document* CPWL_DocFontMap::GetDocument()
599 { 599 {
600 return m_pAttachedDoc; 600 return m_pAttachedDoc;
601 } 601 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/jsapi/fxjs_v8.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698