summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_fwltheme.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-03-21 15:52:56 -0700
committerTom Sepez <tsepez@chromium.org>2016-03-21 15:52:56 -0700
commitd074e9787fe5f21d49269a504969cfcf4eec016b (patch)
tree8384a35e7cb251df4018c66c98716f41c97002fd /xfa/fxfa/app/xfa_fwltheme.cpp
parent62a70f90c49cf7714c960186eb063ad55333e6f3 (diff)
downloadpdfium-d074e9787fe5f21d49269a504969cfcf4eec016b.tar.xz
Make predefined character table slightly smaller.
Add a few missing consts and remove a few extra externs. R=ochang@chromium.org Review URL: https://codereview.chromium.org/1817283002 .
Diffstat (limited to 'xfa/fxfa/app/xfa_fwltheme.cpp')
-rw-r--r--xfa/fxfa/app/xfa_fwltheme.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/xfa/fxfa/app/xfa_fwltheme.cpp b/xfa/fxfa/app/xfa_fwltheme.cpp
index 6ebf4e3f41..11b70024c4 100644
--- a/xfa/fxfa/app/xfa_fwltheme.cpp
+++ b/xfa/fxfa/app/xfa_fwltheme.cpp
@@ -23,6 +23,14 @@
#include "xfa/include/fwl/basewidget/fwl_pushbutton.h"
#include "xfa/include/fwl/basewidget/fwl_scrollbar.h"
+namespace {
+
+const FX_WCHAR* const g_FWLTheme_CalFonts[] = {
+ L"Arial", L"Courier New", L"DejaVu Sans",
+};
+
+} // namespace
+
CXFA_FFWidget* XFA_ThemeGetOuterWidget(IFWL_Widget* pWidget) {
IFWL_Widget* pOuter = pWidget;
while (pOuter->GetOuter()) {
@@ -66,9 +74,6 @@ CXFA_FWLTheme::~CXFA_FWLTheme() {
delete m_pCaretTP;
delete m_pBarcodeTP;
}
-static const FX_WCHAR* g_FWLTheme_CalFonts[] = {
- L"Arial", L"Courier New", L"DejaVu Sans",
-};
FWL_ERR CXFA_FWLTheme::Initialize() {
m_pTextOut = IFDE_TextOut::Create();
for (size_t i = 0; !m_pCalendarFont && i < FX_ArraySize(g_FWLTheme_CalFonts);