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

Issue 2361713002: Remove some objnum locals with AddIndirectObject (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

Remove some objnum locals with AddIndirectObject Also, it's idempotent, so simplify some logic in callers to not care if objnum is zero. The alternate forms are rarely used, using the objnum form makes it clear that SetReferenceFor() can't possibly register the object as a side-effect. Committed: https://pdfium.googlesource.com/pdfium/+/bb577af2f17467a55c04fbff21a8f0ec1016601a

Patch Set 1 #

Patch Set 2 : Remove one form of SetReferenceFor #

Patch Set 3 : Same treatment for arrays #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -124 lines) Patch
M core/fpdfapi/fpdf_edit/cpdf_pagecontentgenerator.cpp View 4 chunks +11 lines, -11 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_image.cpp View 1 2 3 chunks +7 lines, -10 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cfdf_document.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_document.cpp View 1 2 5 chunks +10 lines, -11 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_array.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M core/fpdfdoc/cpdf_formfield_unittest.cpp View 1 2 chunks +5 lines, -5 lines 0 comments Download
M core/fpdfdoc/cpdf_interform.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M core/fpdfdoc/cpvt_fontmap.cpp View 1 1 chunk +4 lines, -3 lines 0 comments Download
M core/fpdfdoc/cpvt_generateap.cpp View 1 6 chunks +10 lines, -10 lines 0 comments Download
M fpdfsdk/cpdfsdk_baannot.cpp View 2 chunks +6 lines, -9 lines 0 comments Download
M fpdfsdk/cpdfsdk_widget.cpp View 1 1 chunk +3 lines, -5 lines 0 comments Download
M fpdfsdk/formfiller/cba_fontmap.cpp View 1 3 chunks +12 lines, -15 lines 0 comments Download
M fpdfsdk/fpdf_flatten.cpp View 4 chunks +9 lines, -11 lines 0 comments Download
M fpdfsdk/fpdf_transformpage.cpp View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M fpdfsdk/fpdfdoc_unittest.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M fpdfsdk/fpdfppo.cpp View 2 chunks +6 lines, -9 lines 0 comments Download
M fpdfsdk/fpdfsave.cpp View 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (14 generated)
Tom Sepez
Dan, mindless tweaking. I think it reads better this way.
4 years, 3 months ago (2016-09-22 00:07:47 UTC) #2
dsinclair
lgtm
4 years, 3 months ago (2016-09-22 02:09:56 UTC) #15
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/2361713002/40001
4 years, 3 months ago (2016-09-22 02:09:59 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 02:10:23 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/bb577af2f17467a55c04fbff21a8f0ec1016...

Powered by Google App Engine
This is Rietveld 408576698