summaryrefslogtreecommitdiff
path: root/core/src/fxge/apple
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-08-13 11:22:54 -0700
committerTom Sepez <tsepez@chromium.org>2015-08-13 11:22:54 -0700
commitd8b5e73d8609b74e6a995ee1768d20d47bd4b089 (patch)
tree12e6c733ed18c273a6f4442e8a711ee478646233 /core/src/fxge/apple
parente42e23f34f0a685d6765ba547a26cc2e601efefd (diff)
downloadpdfium-d8b5e73d8609b74e6a995ee1768d20d47bd4b089.tar.xz
Allow external font-path configuration from pdfium_test.
R=thestig@chromium.org Review URL: https://codereview.chromium.org/1268323004 .
Diffstat (limited to 'core/src/fxge/apple')
-rw-r--r--core/src/fxge/apple/fx_mac_imp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fxge/apple/fx_mac_imp.cpp b/core/src/fxge/apple/fx_mac_imp.cpp
index 9918ba97e8..5a4e6603df 100644
--- a/core/src/fxge/apple/fx_mac_imp.cpp
+++ b/core/src/fxge/apple/fx_mac_imp.cpp
@@ -93,7 +93,7 @@ void* CFX_MacFontInfo::MapFont(int weight,
}
return NULL;
}
-IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault() {
+IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault(const char** pUnused) {
CFX_MacFontInfo* pInfo = new CFX_MacFontInfo;
pInfo->AddPath("~/Library/Fonts");
pInfo->AddPath("/Library/Fonts");
@@ -102,7 +102,7 @@ IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault() {
}
void CFX_GEModule::InitPlatform() {
m_pPlatformData = new CApplePlatform;
- m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault());
+ m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault(nullptr));
}
void CFX_GEModule::DestroyPlatform() {
delete (CApplePlatform*)m_pPlatformData;