Index: core/src/fxge/ge/fx_ge_fontmap.cpp |
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp |
index 6432397e042be6f3055ba42bbba0e3d75686554d..4105e79a69b5b4d3c5e5780498278184b31baa7b 100644 |
--- a/core/src/fxge/ge/fx_ge_fontmap.cpp |
+++ b/core/src/fxge/ge/fx_ge_fontmap.cpp |
@@ -5,6 +5,7 @@ |
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
#include <limits> |
+#include <vector> |
#include "core/include/fxge/fx_freetype.h" |
#include "core/include/fxge/fx_ge.h" |
@@ -711,7 +712,7 @@ CFX_ByteString CFX_FontMapper::GetPSNameFromTT(void* hFont) { |
return CFX_ByteString(); |
std::vector<uint8_t> buffer(size); |
- uint8_t* buffer_ptr = pdfium::vector_as_array(&buffer); |
+ uint8_t* buffer_ptr = buffer.data(); |
FX_DWORD bytes_read = |
m_pFontInfo->GetFontData(hFont, kTableNAME, buffer_ptr, size); |
return (bytes_read == size) ? GetNameFromTT(buffer_ptr, 6) : CFX_ByteString(); |