Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Unified Diff: core/src/fxge/win32/fx_win32_device.cpp

Issue 1703193002: Fix windows build at ab27768d2359. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fxge/win32/fx_win32_device.cpp
diff --git a/core/src/fxge/win32/fx_win32_device.cpp b/core/src/fxge/win32/fx_win32_device.cpp
index a7dd22f6128e9d05c0f54a4d36d49f4ebc0a030c..58f8769ac75014e2fadc39c059c4ee2b31d04c0f 100644
--- a/core/src/fxge/win32/fx_win32_device.cpp
+++ b/core/src/fxge/win32/fx_win32_device.cpp
@@ -15,8 +15,9 @@
#include "core/src/fxge/agg/include/fx_agg_driver.h"
#include "core/src/fxge/dib/dib_int.h"
#include "core/src/fxge/ge/fx_text_int.h"
-#include "dwrite_int.h"
-#include "win32_int.h"
+#include "core/src/fxge/win32/dwrite_int.h"
+#include "core/src/fxge/win32/win32_int.h"
+#include "third_party/base/stl_util.h"
class CFX_Win32FallbackFontInfo final : public CFX_FolderFontInfo {
public:
@@ -195,7 +196,7 @@ CFX_ByteString CFX_Win32FontInfo::FindFont(const CFX_ByteString& name) {
if (!m_pMapper) {
return name;
}
- int nFonts = m_pMapper->m_InstalledTTFonts.GetSize();
+ int nFonts = pdfium::CollectionSize<int>(m_pMapper->m_InstalledTTFonts);
for (int i = 0; i < nFonts; i++) {
CFX_ByteString thisname = m_pMapper->m_InstalledTTFonts[i];
if (thisname[0] == ' ') {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698