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

Issue 2358043003: Make ownership explicit in CPDF_ContentMarkItem (Closed)

Created:
4 years, 3 months ago by Tom Sepez
Modified:
4 years, 3 months ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Make ownership explicit in CPDF_ContentMarkItem. The old SetParam() method had "maybe take ownership" semanitcs based upon the type argument. Make GetParam() handle the None case and simplify callers based upon that behaviour. Committed: https://pdfium.googlesource.com/pdfium/+/17103b84ebde9ab2b05dff38d473b5d44f723ff2

Patch Set 1 #

Patch Set 2 : cleanup callers #

Total comments: 6

Patch Set 3 : IWYU #

Patch Set 4 : Not owned #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -50 lines) Patch
M core/fpdfapi/fpdf_page/cpdf_contentmark.cpp View 1 3 chunks +9 lines, -16 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h View 1 2 3 2 chunks +15 lines, -8 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_contentmarkitem.cpp View 1 1 chunk +33 lines, -18 lines 0 comments Download
M core/fpdftext/cpdf_textpage.cpp View 1 2 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
Tom Sepez
Dan, for review.
4 years, 3 months ago (2016-09-21 19:27:21 UTC) #3
dsinclair
https://codereview.chromium.org/2358043003/diff/20001/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h File core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h (right): https://codereview.chromium.org/2358043003/diff/20001/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h#newcode8 core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h:8: #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKITEM_H_ #include <memory> https://codereview.chromium.org/2358043003/diff/20001/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h#newcode39 core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h:39: CPDF_Dictionary* m_pPropertiesDict; nit: ...
4 years, 3 months ago (2016-09-21 19:34:43 UTC) #6
Tom Sepez
https://codereview.chromium.org/2358043003/diff/20001/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h File core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h (right): https://codereview.chromium.org/2358043003/diff/20001/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h#newcode8 core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h:8: #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKITEM_H_ On 2016/09/21 19:34:43, dsinclair wrote: > #include ...
4 years, 3 months ago (2016-09-21 20:04:44 UTC) #9
dsinclair
lgtm
4 years, 3 months ago (2016-09-21 20:06:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2358043003/40001
4 years, 3 months ago (2016-09-21 20:06:14 UTC) #12
Tom Sepez
https://codereview.chromium.org/2358043003/diff/20001/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h File core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h (right): https://codereview.chromium.org/2358043003/diff/20001/core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h#newcode39 core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h:39: CPDF_Dictionary* m_pPropertiesDict; On 2016/09/21 19:34:43, dsinclair wrote: > nit: ...
4 years, 3 months ago (2016-09-21 20:06:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2358043003/60001
4 years, 3 months ago (2016-09-21 20:08:56 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 20:30:35 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/17103b84ebde9ab2b05dff38d473b5d44f72...

Powered by Google App Engine
This is Rietveld 408576698