From 316e482630d5f5d9084edd9725f98a0d89a5bbdf Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 16 Oct 2015 16:21:58 -0700 Subject: Don't bother passing -1 as the length to the CFX_ByteString ctor. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1406363002 . --- core/src/fxge/ge/fx_ge_fontmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/fxge/ge/fx_ge_fontmap.cpp') 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(','); -- cgit v1.2.3