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

Issue 2003833003: Use unique_ptr in CPDF_CidFont (Closed)

Created:
4 years, 7 months ago by Tom Sepez
Modified:
4 years, 7 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rename m_pCIDToGIDMap, use std::vector<>. #

Total comments: 1

Patch Set 3 : No need for widths array. #

Patch Set 4 : No need for <vector> if no vector. #

Total comments: 2

Patch Set 5 : FALSE => false #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -36 lines) Patch
M core/fpdfapi/fpdf_font/cpdf_cidfont.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_font/cpdf_cidfont.cpp View 1 2 3 4 9 chunks +19 lines, -31 lines 0 comments Download
M core/fpdfapi/fpdf_font/font_int.h View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
Tom Sepez
Lei, for review.
4 years, 7 months ago (2016-05-20 23:33:19 UTC) #2
Lei Zhang
https://codereview.chromium.org/2003833003/diff/1/core/fpdfapi/fpdf_font/cpdf_cidfont.h File core/fpdfapi/fpdf_font/cpdf_cidfont.h (right): https://codereview.chromium.org/2003833003/diff/1/core/fpdfapi/fpdf_font/cpdf_cidfont.h#newcode72 core/fpdfapi/fpdf_font/cpdf_cidfont.h:72: std::unique_ptr<CPDF_CMap> m_pAllocatedCMap; #include <memory> https://codereview.chromium.org/2003833003/diff/1/core/fpdfapi/fpdf_font/cpdf_cidfont.h#newcode78 core/fpdfapi/fpdf_font/cpdf_cidfont.h:78: std::unique_ptr<CPDF_StreamAcc> m_pCIDToGIDMap; This ...
4 years, 7 months ago (2016-05-20 23:41:29 UTC) #3
Tom Sepez
https://codereview.chromium.org/2003833003/diff/1/core/fpdfapi/fpdf_font/cpdf_cidfont.h File core/fpdfapi/fpdf_font/cpdf_cidfont.h (right): https://codereview.chromium.org/2003833003/diff/1/core/fpdfapi/fpdf_font/cpdf_cidfont.h#newcode72 core/fpdfapi/fpdf_font/cpdf_cidfont.h:72: std::unique_ptr<CPDF_CMap> m_pAllocatedCMap; On 2016/05/20 23:41:28, Lei Zhang wrote: > ...
4 years, 7 months ago (2016-05-23 18:09:44 UTC) #4
Lei Zhang
https://codereview.chromium.org/2003833003/diff/20001/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp File core/fpdfapi/fpdf_font/cpdf_cidfont.cpp (right): https://codereview.chromium.org/2003833003/diff/20001/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp#newcode884 core/fpdfapi/fpdf_font/cpdf_cidfont.cpp:884: m_AnsiWidths[i] = 500; Given the possible contents of |m_AnsiWidths|, ...
4 years, 7 months ago (2016-05-23 18:32:26 UTC) #5
Tom Sepez
4 years, 7 months ago (2016-05-23 19:24:10 UTC) #6
Tom Sepez
Done.
4 years, 7 months ago (2016-05-23 19:24:19 UTC) #7
Lei Zhang
lgtm https://codereview.chromium.org/2003833003/diff/60001/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp File core/fpdfapi/fpdf_font/cpdf_cidfont.cpp (right): https://codereview.chromium.org/2003833003/diff/60001/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp#newcode210 core/fpdfapi/fpdf_font/cpdf_cidfont.cpp:210: m_bAnsiWidthsFixed(FALSE), false
4 years, 7 months ago (2016-05-23 19:28:27 UTC) #8
Tom Sepez
https://codereview.chromium.org/2003833003/diff/60001/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp File core/fpdfapi/fpdf_font/cpdf_cidfont.cpp (right): https://codereview.chromium.org/2003833003/diff/60001/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp#newcode210 core/fpdfapi/fpdf_font/cpdf_cidfont.cpp:210: m_bAnsiWidthsFixed(FALSE), On 2016/05/23 19:28:27, Lei Zhang wrote: > false ...
4 years, 7 months ago (2016-05-23 20:07:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003833003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003833003/80001
4 years, 7 months ago (2016-05-23 20:07:49 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 20:28:48 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/109975b30dbb2b047001a840b8a1e77434fc...

Powered by Google App Engine
This is Rietveld 408576698