summaryrefslogtreecommitdiff
path: root/core/fxge/win32/fx_win32_device.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-21 15:42:49 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-21 23:11:20 +0000
commit25694831670ef6172b1b9b71359a6c192e26da20 (patch)
tree871a77ab2298d89dd7e4f897d8ae5e8f60c8e42a /core/fxge/win32/fx_win32_device.cpp
parent350d2d904a3e6bd1e96542c5e223d301d9bdbe6a (diff)
downloadpdfium-chromium/3079.tar.xz
Use unique_ptr in CFX_FolderFontInfo::m_FontListchromium/3079
Avoid a string duplication along the way. Change-Id: I866c34ad1afb20b9578aeb7cabeb8a185674c884 Reviewed-on: https://pdfium-review.googlesource.com/4437 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/win32/fx_win32_device.cpp')
-rw-r--r--core/fxge/win32/fx_win32_device.cpp2
1 files changed, 1 insertions, 1 deletions
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> 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<IFX_SystemFontInfo>(pInfoFallback);
}