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

Unified Diff: core/src/fxge/ge/fx_ge_fontmap.cpp

Issue 1542213002: Merge to XFA: Start using allowed C++11 features. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: fix mac/win Created 5 years 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 | « core/src/fxcodec/jbig2/JBig2_SddProc.cpp ('k') | samples/image_diff.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_SddProc.cpp ('k') | samples/image_diff.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698