Don't bother passing -1 as the length to the CFX_ByteString ctor.
[pdfium.git] / core / src / fxge / win32 / fx_win32_device.cpp
index a40e79b..93c2fd6 100644 (file)
@@ -122,7 +122,7 @@ FX_BOOL CFX_Win32FontInfo::IsSupportFontFormDiv(const LOGFONTA* plf) {
 }
 void CFX_Win32FontInfo::AddInstalledFont(const LOGFONTA* plf,
                                          FX_DWORD FontType) {
-  CFX_ByteString name(plf->lfFaceName, -1);
+  CFX_ByteString name(plf->lfFaceName);
   if (name[0] == '@') {
     return;
   }