From 25694831670ef6172b1b9b71359a6c192e26da20 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 21 Apr 2017 15:42:49 -0700 Subject: Use unique_ptr in CFX_FolderFontInfo::m_FontList Avoid a string duplication along the way. Change-Id: I866c34ad1afb20b9578aeb7cabeb8a185674c884 Reviewed-on: https://pdfium-review.googlesource.com/4437 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fxge/win32/fx_win32_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxge/win32') diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp index de2f6c4b04..c67ed526d3 100644 --- a/core/fxge/win32/fx_win32_device.cpp +++ b/core/fxge/win32/fx_win32_device.cpp @@ -704,7 +704,7 @@ std::unique_ptr IFX_SystemFontInfo::CreateDefault( if (path_len > 0 && path_len < MAX_PATH) { CFX_ByteString fonts_path(windows_path); fonts_path += "\\Fonts"; - pInfoFallback->AddPath(fonts_path.AsStringC()); + pInfoFallback->AddPath(fonts_path); } return std::unique_ptr(pInfoFallback); } -- cgit v1.2.3