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

Issue 1409973003: Remove unused error variable from CFX_Font::AdjustMMParams (Closed)

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

Description

Remove unused error variable from CFX_Font::AdjustMMParams Also fixes a potential memory leak. R=tsepez@chromium.org, thestig@chromium.org BUG=pdfium:156 Committed: https://pdfium.googlesource.com/pdfium/+/de49cf173d12fe7a462168e2bf6c44971d7d28f8

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M core/src/fxge/ge/fx_ge_text.cpp View 1 chunk +5 lines, -4 lines 2 comments Download

Messages

Total messages: 5 (0 generated)
Oliver Chang
ptal, not sure if it's worth rewriting the whole method to make the failure cases ...
5 years, 2 months ago (2015-10-22 17:56:08 UTC) #1
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-22 17:56:48 UTC) #2
Oliver Chang
Committed patchset #1 (id:1) manually as de49cf173d12fe7a462168e2bf6c44971d7d28f8 (presubmit successful).
5 years, 2 months ago (2015-10-22 18:03:45 UTC) #3
Lei Zhang
lgtm for now, but... https://codereview.chromium.org/1409973003/diff/1/core/src/fxge/ge/fx_ge_text.cpp File core/src/fxge/ge/fx_ge_text.cpp (left): https://codereview.chromium.org/1409973003/diff/1/core/src/fxge/ge/fx_ge_text.cpp#oldcode1404 core/src/fxge/ge/fx_ge_text.cpp:1404: int error = FXFT_Set_MM_Design_Coordinates(m_Face, 2, ...
5 years, 2 months ago (2015-10-22 18:53:40 UTC) #4
Oliver Chang
5 years, 2 months ago (2015-10-22 18:58:55 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1409973003/diff/1/core/src/fxge/ge/fx_ge_text...
File core/src/fxge/ge/fx_ge_text.cpp (left):

https://codereview.chromium.org/1409973003/diff/1/core/src/fxge/ge/fx_ge_text...
core/src/fxge/ge/fx_ge_text.cpp:1404: int error =
FXFT_Set_MM_Design_Coordinates(m_Face, 2, coords);
On 2015/10/22 18:53:40, Lei Zhang wrote:
> Uh, we had plans to actually check |error|. See
> https://code.google.com/p/pdfium/issues/detail?id=156 , which I never got
around
> to fixing.

Sure, I wasn't sure if it was worth rewriting the logic in a way to do the
actual error checking here.

Powered by Google App Engine
This is Rietveld 408576698