summaryrefslogtreecommitdiff
path: root/core/src/fxge/ge
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-16 16:21:58 -0700
committerLei Zhang <thestig@chromium.org>2015-10-16 16:21:58 -0700
commit316e482630d5f5d9084edd9725f98a0d89a5bbdf (patch)
treed0da57af48d88a18e0cd7dca9093057316da4078 /core/src/fxge/ge
parent3d7d1d2f29e5fb099367a40822684d31f684fd62 (diff)
downloadpdfium-316e482630d5f5d9084edd9725f98a0d89a5bbdf.tar.xz
Don't bother passing -1 as the length to the CFX_ByteString ctor.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1406363002 .
Diffstat (limited to 'core/src/fxge/ge')
-rw-r--r--core/src/fxge/ge/fx_ge_fontmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp
index 061ad66dd0..e88791aac5 100644
--- a/core/src/fxge/ge/fx_ge_fontmap.cpp
+++ b/core/src/fxge/ge/fx_ge_fontmap.cpp
@@ -455,7 +455,7 @@ void CFX_FontMapper::SetSystemFontInfo(IFX_SystemFontInfo* pFontInfo) {
m_pFontInfo = pFontInfo;
}
static CFX_ByteString _TT_NormalizeName(const FX_CHAR* family) {
- CFX_ByteString norm(family, -1);
+ CFX_ByteString norm(family);
norm.Remove(' ');
norm.Remove('-');
norm.Remove(',');