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

Issue 1929963002: Change bool type to fix warnings. (Closed)

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

Description

Change bool type to fix warnings. Switching the Is{SHIFT|CTRL|ALT|}KeyDown methods to bool from FX_BOOL generated cfx_systemhandler.cpp(129): warning C4800: 'FX_BOOL': forcing value to bool 'true' or 'false' (performance warning) on the win_chromium_x64_rel_ng and win8_chromium_ng bots. This CL switches back to FX_BOOL. Attempting to move everything to bool has huge ripple effects. I removed IsINSERTKeyDown as it was always false. Committed: https://pdfium.googlesource.com/pdfium/+/224bc5a983a02c0da3ecc0ee55b6c8b1fe500980

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -21 lines) Patch
M fpdfsdk/cfx_systemhandler.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M fpdfsdk/cfx_systemhandler.cpp View 1 1 chunk +3 lines, -7 lines 0 comments Download
M fpdfsdk/include/fsdk_mgr.h View 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_EditCtrl.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Wnd.h View 1 chunk +0 lines, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_Wnd.cpp View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
dsinclair
PTAL.
4 years, 7 months ago (2016-04-28 13:49:12 UTC) #2
Tom Sepez
https://codereview.chromium.org/1929963002/diff/1/fpdfsdk/cfx_systemhandler.cpp File fpdfsdk/cfx_systemhandler.cpp (right): https://codereview.chromium.org/1929963002/diff/1/fpdfsdk/cfx_systemhandler.cpp#newcode129 fpdfsdk/cfx_systemhandler.cpp:129: return m_pEnv->FFI_IsSHIFTKeyDown(nFlag); How about keeping the return type as ...
4 years, 7 months ago (2016-04-28 16:24:54 UTC) #3
dsinclair
https://codereview.chromium.org/1929963002/diff/1/fpdfsdk/cfx_systemhandler.cpp File fpdfsdk/cfx_systemhandler.cpp (right): https://codereview.chromium.org/1929963002/diff/1/fpdfsdk/cfx_systemhandler.cpp#newcode129 fpdfsdk/cfx_systemhandler.cpp:129: return m_pEnv->FFI_IsSHIFTKeyDown(nFlag); On 2016/04/28 16:24:54, Tom Sepez wrote: > ...
4 years, 7 months ago (2016-04-28 17:14:50 UTC) #4
Tom Sepez
lgtm
4 years, 7 months ago (2016-04-28 17:52:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929963002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929963002/20001
4 years, 7 months ago (2016-04-28 18:04:36 UTC) #7
commit-bot: I haz the power
4 years, 7 months ago (2016-04-28 18:04:54 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/224bc5a983a02c0da3ecc0ee55b6c8b1fe50...

Powered by Google App Engine
This is Rietveld 408576698