summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_charposlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/render/cpdf_charposlist.h')
-rw-r--r--core/fpdfapi/render/cpdf_charposlist.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/fpdfapi/render/cpdf_charposlist.h b/core/fpdfapi/render/cpdf_charposlist.h
index c4636bca51..dd7c87b100 100644
--- a/core/fpdfapi/render/cpdf_charposlist.h
+++ b/core/fpdfapi/render/cpdf_charposlist.h
@@ -10,20 +10,23 @@
#include <vector>
#include "core/fxcrt/fx_system.h"
-#include "core/fxge/cfx_renderdevice.h"
class CPDF_Font;
+class FXTEXT_CHARPOS;
class CPDF_CharPosList {
public:
CPDF_CharPosList();
~CPDF_CharPosList();
+
void Load(const std::vector<uint32_t>& charCodes,
const std::vector<float>& charPos,
CPDF_Font* pFont,
float font_size);
- FXTEXT_CHARPOS* m_pCharPos;
- uint32_t m_nChars;
+
+ // TODO(thestig): Convert to unique_ptr or vector.
+ FXTEXT_CHARPOS* m_pCharPos = nullptr;
+ uint32_t m_nChars = 0;
};
#endif // CORE_FPDFAPI_RENDER_CPDF_CHARPOSLIST_H_