summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/pdfwindow
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-24 21:01:20 -0800
committerLei Zhang <thestig@chromium.org>2015-12-24 21:01:20 -0800
commitae58ed8bccc56dd78c12d89972b19d58de94f790 (patch)
tree714ad4479ffc449d6325e66b7596aa5e50778041 /fpdfsdk/src/pdfwindow
parentd20dfba2ae10e8aeb328328f09da79ff904110a8 (diff)
downloadpdfium-ae58ed8bccc56dd78c12d89972b19d58de94f790.tar.xz
Fix a bad virtual keyword removal from commit 0f6b51c.
BUG=546744 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1542373002 .
Diffstat (limited to 'fpdfsdk/src/pdfwindow')
-rw-r--r--fpdfsdk/src/pdfwindow/PWL_FontMap.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/fpdfsdk/src/pdfwindow/PWL_FontMap.cpp b/fpdfsdk/src/pdfwindow/PWL_FontMap.cpp
index d5ca376882..fadea905d4 100644
--- a/fpdfsdk/src/pdfwindow/PWL_FontMap.cpp
+++ b/fpdfsdk/src/pdfwindow/PWL_FontMap.cpp
@@ -151,13 +151,8 @@ void CPWL_FontMap::Empty() {
}
}
-void CPWL_FontMap::Initial(const FX_CHAR* fontname) {
- CFX_ByteString sFontName = fontname;
-
- if (sFontName.IsEmpty())
- sFontName = DEFAULT_FONT_NAME;
-
- GetFontIndex(sFontName, ANSI_CHARSET, FALSE);
+void CPWL_FontMap::Initialize() {
+ GetFontIndex(DEFAULT_FONT_NAME, ANSI_CHARSET, FALSE);
}
/*