summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_textobject.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-25 22:01:07 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-25 22:01:07 +0000
commit76fb29d5ebae4fea2e5d1221f77e218a9b4b309a (patch)
treee274d6094b7850c7fc86325da790393a9bd145d8 /core/fpdfapi/page/cpdf_textobject.h
parent8c955c9d307272d43d532cd206abc4077076d212 (diff)
downloadpdfium-76fb29d5ebae4fea2e5d1221f77e218a9b4b309a.tar.xz
Clean up CPDF_StreamContentParser::AddTextObject().chromium/3473
Change-Id: I1794848607f2db3f1ef39dbd221b7219feb9254c Reviewed-on: https://pdfium-review.googlesource.com/35990 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_textobject.h')
-rw-r--r--core/fpdfapi/page/cpdf_textobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_textobject.h b/core/fpdfapi/page/cpdf_textobject.h
index d3b6dcc3de..ac17c6df68 100644
--- a/core/fpdfapi/page/cpdf_textobject.h
+++ b/core/fpdfapi/page/cpdf_textobject.h
@@ -60,7 +60,9 @@ class CPDF_TextObject : public CPDF_PageObject {
const std::vector<uint32_t>& GetCharCodes() const { return m_CharCodes; }
const std::vector<float>& GetCharPositions() const { return m_CharPos; }
- void SetSegments(const ByteString* pStrs, const float* pKerning, int nSegs);
+ void SetSegments(const ByteString* pStrs,
+ const std::vector<float>& kernings,
+ size_t nSegs);
CFX_PointF CalcPositionData(float horz_scale);
private: