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

Issue 1815453002: Handle empty objects in IsSameTextObject() and free from warning (Closed)

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

Description

Handle empty objects in IsSameTextObject() and free from warning When both text objects have no items, directly return TRUE; The last if statement moved inside loop to make the intent more obvious and free from warning (msvc warns using potentially uninitialized var itemPer) R=jun_fang@foxitsoftware.com Committed: https://pdfium.googlesource.com/pdfium/+/34fa8d90ae2f60fae219e4dbeff14c053d2e8eef

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M core/fpdftext/fpdf_text_int.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 11 (5 generated)
Wei Li
@jun, please take a look whether the last if stmt is intended to be run ...
4 years, 9 months ago (2016-03-17 19:50:47 UTC) #4
jun_fang
https://codereview.chromium.org/1815453002/diff/1/core/fpdftext/fpdf_text_int.cpp File core/fpdftext/fpdf_text_int.cpp (left): https://codereview.chromium.org/1815453002/diff/1/core/fpdftext/fpdf_text_int.cpp#oldcode1813 core/fpdftext/fpdf_text_int.cpp:1813: if (FXSYS_fabs(pTextObj1->GetPosX() - pTextObj2->GetPosX()) > Code here is used ...
4 years, 9 months ago (2016-03-18 05:31:48 UTC) #5
Tom Sepez
https://codereview.chromium.org/1815453002/diff/1/core/fpdftext/fpdf_text_int.cpp File core/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1815453002/diff/1/core/fpdftext/fpdf_text_int.cpp#newcode1814 core/fpdftext/fpdf_text_int.cpp:1814: if (i == nPreCount - 1) { On 2016/03/18 ...
4 years, 9 months ago (2016-03-18 16:13:43 UTC) #6
Wei Li
thanks https://codereview.chromium.org/1815453002/diff/1/core/fpdftext/fpdf_text_int.cpp File core/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1815453002/diff/1/core/fpdftext/fpdf_text_int.cpp#newcode1814 core/fpdftext/fpdf_text_int.cpp:1814: if (i == nPreCount - 1) { On ...
4 years, 9 months ago (2016-03-18 16:59:44 UTC) #8
jun_fang
On 2016/03/18 16:59:44, Wei Li wrote: > thanks > > https://codereview.chromium.org/1815453002/diff/1/core/fpdftext/fpdf_text_int.cpp > File core/fpdftext/fpdf_text_int.cpp (right): ...
4 years, 9 months ago (2016-03-19 00:06:17 UTC) #9
Wei Li
4 years, 9 months ago (2016-03-21 17:34:08 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:40001) manually as
34fa8d90ae2f60fae219e4dbeff14c053d2e8eef (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698