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

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_FontMap.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/pdfwindow/PWL_EditCtrl.cpp ('k') | fpdfsdk/src/pdfwindow/PWL_Icon.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 "../../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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 m_aData.RemoveAll(); 188 m_aData.RemoveAll();
189 } 189 }
190 { 190 {
191 for (int32_t i=0, sz=m_aNativeFont.GetSize(); i<sz; i++) 191 for (int32_t i=0, sz=m_aNativeFont.GetSize(); i<sz; i++)
192 delete m_aNativeFont.GetAt(i); 192 delete m_aNativeFont.GetAt(i);
193 193
194 m_aNativeFont.RemoveAll(); 194 m_aNativeFont.RemoveAll();
195 } 195 }
196 } 196 }
197 197
198 void CPWL_FontMap::Initial(FX_LPCSTR fontname) 198 void CPWL_FontMap::Initial(const FX_CHAR* fontname)
199 { 199 {
200 CFX_ByteString sFontName = fontname; 200 CFX_ByteString sFontName = fontname;
201 201
202 if (sFontName.IsEmpty()) 202 if (sFontName.IsEmpty())
203 sFontName = DEFAULT_FONT_NAME; 203 sFontName = DEFAULT_FONT_NAME;
204 204
205 GetFontIndex(sFontName, ANSI_CHARSET, FALSE); 205 GetFontIndex(sFontName, ANSI_CHARSET, FALSE);
206 206
207 //GetFontIndex(this->GetNativeFontName(nCharset), nCharset); 207 //GetFontIndex(this->GetNativeFontName(nCharset), nCharset);
208 } 208 }
(...skipping 383 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/pdfwindow/PWL_EditCtrl.cpp ('k') | fpdfsdk/src/pdfwindow/PWL_Icon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698