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

Issue 1317733007: Remove unneeded checks for CPDF_Object::GetDict() return values. (Closed)

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

Description

Remove unneeded checks for CPDF_Object::GetDict() return values. CPDF_Object::GetDict() always returns a valid pointer for dictionaries. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/2f740a8bd61c1c198796dd5e2124d007267f9c1a

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -9 lines) Patch
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 2 chunks +6 lines, -9 lines 2 comments Download

Messages

Total messages: 6 (1 generated)
Lei Zhang
https://codereview.chromium.org/1317733007/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/1317733007/diff/1/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode4111 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:4111: CPDF_Dictionary* pTrailerDict = pTrailer->GetDict(); Check is right above on ...
5 years, 3 months ago (2015-09-04 21:10:40 UTC) #2
Tom Sepez
LGTM. In the past, I've toyed with the idea of adding ToDict() methods and such ...
5 years, 3 months ago (2015-09-08 16:04:00 UTC) #3
Lei Zhang
On 2015/09/08 16:04:00, Tom Sepez wrote: > LGTM. > > In the past, I've toyed ...
5 years, 3 months ago (2015-09-08 17:16:54 UTC) #4
Lei Zhang
Committed patchset #1 (id:1) manually as 2f740a8bd61c1c198796dd5e2124d007267f9c1a (presubmit successful).
5 years, 3 months ago (2015-09-08 17:17:30 UTC) #5
Tom Sepez
5 years, 3 months ago (2015-09-08 17:33:54 UTC) #6
Message was sent while issue was closed.
On 2015/09/08 17:17:30, Lei Zhang wrote:
> Committed patchset #1 (id:1) manually as
> 2f740a8bd61c1c198796dd5e2124d007267f9c1a (presubmit successful).

https://code.google.com/p/pdfium/issues/detail?id=201 as followup.

Powered by Google App Engine
This is Rietveld 408576698