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

Issue 454983003: Add FX_OVERRIDE and use it for virtual functions of FX_FINAL classes. (Closed)

Created:
6 years, 4 months ago by Tom Sepez
Modified:
6 years, 4 months ago
Reviewers:
jun_fang, jam
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Add FX_OVERRIDE and use it for virtual functions of FX_FINAL classes. Should there be cases where this fails to compile, it indicates a mistake, either an incorrectly declared overrriden virtual method, or a method that should be declared non-virtual. The only issues were with CPDF_CustomAccess::GetBlock(), CPDF_CustomAccess::GetByte(), and CPDF_CustomAccess::GetFullPath(). These don't appear to be used anywhere, and are removed. Two members are removed that are no longer needed once those methods are removed. R=jam@chromium.org, jun_fang@foxitsoftware.com Committed: https://pdfium.googlesource.com/pdfium/+/368ed46

Patch Set 1 #

Patch Set 2 : Add FX_OVERRIDE and remove unused members. #

Total comments: 4

Patch Set 3 : Use FX_OVERRIDE for all virtual methods of FX_FINAL classes. #

Patch Set 4 : Check for NULL. #

Patch Set 5 : mark m_FileAccess private. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -103 lines) Patch
M core/include/fpdfapi/fpdf_parser.h View 1 2 3 chunks +16 lines, -16 lines 0 comments Download
M core/include/fxcrt/fx_system.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/ttgsubtable.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fxcrt/extension.h View 1 2 14 chunks +27 lines, -27 lines 0 comments Download
M core/src/fxcrt/fx_arabic.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M core/src/fxge/apple/apple_int.h View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M fpdfsdk/include/fsdk_define.h View 1 2 3 4 1 chunk +4 lines, -8 lines 0 comments Download
M fpdfsdk/src/fpdf_sysfontinfo.cpp View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M fpdfsdk/src/fpdfsave.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 2 3 1 chunk +2 lines, -28 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Tom Sepez
Jun, please take a look. In trying to trace how the recent fix to GetBlock() ...
6 years, 4 months ago (2014-08-08 20:42:41 UTC) #1
Tom Sepez
@jam - is there something special about this interface we have to preserve? Thanks.
6 years, 4 months ago (2014-08-08 21:18:07 UTC) #2
jun_fang
https://codereview.chromium.org/454983003/diff/20001/fpdfsdk/include/fsdk_define.h File fpdfsdk/include/fsdk_define.h (right): https://codereview.chromium.org/454983003/diff/20001/fpdfsdk/include/fsdk_define.h#newcode112 fpdfsdk/include/fsdk_define.h:112: virtual void Release() FX_OVERRIDE { delete this; } Shall ...
6 years, 4 months ago (2014-08-08 22:16:41 UTC) #3
Tom Sepez
https://codereview.chromium.org/454983003/diff/20001/fpdfsdk/include/fsdk_define.h File fpdfsdk/include/fsdk_define.h (right): https://codereview.chromium.org/454983003/diff/20001/fpdfsdk/include/fsdk_define.h#newcode112 fpdfsdk/include/fsdk_define.h:112: virtual void Release() FX_OVERRIDE { delete this; } On ...
6 years, 4 months ago (2014-08-08 22:21:37 UTC) #4
jun_fang
On 2014/08/08 22:21:37, Tom Sepez wrote: > https://codereview.chromium.org/454983003/diff/20001/fpdfsdk/include/fsdk_define.h > File fpdfsdk/include/fsdk_define.h (right): > > https://codereview.chromium.org/454983003/diff/20001/fpdfsdk/include/fsdk_define.h#newcode112 ...
6 years, 4 months ago (2014-08-08 22:43:18 UTC) #5
Tom Sepez
Yes. There are two paths to call CPDF_CustomAccess::CPDF_CustomAccess. > Currently, there are not problems for ...
6 years, 4 months ago (2014-08-08 23:25:10 UTC) #6
jun_fang
On 2014/08/08 23:25:10, Tom Sepez wrote: > Yes. There are two paths to call CPDF_CustomAccess::CPDF_CustomAccess. ...
6 years, 4 months ago (2014-08-08 23:35:25 UTC) #7
jam
On 2014/08/08 21:18:07, Tom Sepez wrote: > @jam - is there something special about this ...
6 years, 4 months ago (2014-08-12 23:53:31 UTC) #8
jam
On 2014/08/08 21:18:07, Tom Sepez wrote: > @jam - is there something special about this ...
6 years, 4 months ago (2014-08-12 23:53:32 UTC) #9
Tom Sepez
> Sorry I'm not sure what you mean? I mean, are there other embedders of ...
6 years, 4 months ago (2014-08-13 00:08:32 UTC) #10
Tom Sepez
> I mean, are there other embedders of pdfium who might be calling these methods ...
6 years, 4 months ago (2014-08-13 00:09:55 UTC) #11
jam
On 2014/08/13 00:09:55, Tom Sepez wrote: > > I mean, are there other embedders of ...
6 years, 4 months ago (2014-08-13 21:38:55 UTC) #12
Tom Sepez
6 years, 4 months ago (2014-08-14 00:12:42 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 manually as 368ed46 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698