summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-02-17 12:20:51 -0800
committerTom Sepez <tsepez@chromium.org>2016-02-17 12:20:51 -0800
commit99afc62bb330118b5d44da9799b75b4c20926592 (patch)
treec00af32bc91121621e65edafa4fdc1321bfe5144 /core/src
parentab27768d235985c0789a10ab490be43e262f48f6 (diff)
downloadpdfium-99afc62bb330118b5d44da9799b75b4c20926592.tar.xz
Fix windows build at ab27768d2359.
TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1703193002 .
Diffstat (limited to 'core/src')
-rw-r--r--core/src/fxge/win32/fx_win32_device.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/fxge/win32/fx_win32_device.cpp b/core/src/fxge/win32/fx_win32_device.cpp
index a7dd22f612..58f8769ac7 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] == ' ') {