Bug 39769 - [Qt] PlatformMouseEventQt.cpp has coding-style errors
Summary: [Qt] PlatformMouseEventQt.cpp has coding-style errors
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-05-26 13:31 PDT by Anders Bakken
Modified: 2010-07-17 22:48 PDT (History)
5 users (show)

See Also:


Attachments
Patch that fixes the coding style issues (2.78 KB, patch)
2010-05-26 14:37 PDT, Anders Bakken
no flags Details | Formatted Diff | Diff
Patch (2.95 KB, patch)
2010-06-04 18:50 PDT, Anders Bakken
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Bakken 2010-05-26 13:31:59 PDT
WebCore/platform/qt/PlatformMouseEventQt.cpp:33:  Alphabetical sorting problem.  [build/include_order] [4]
WebCore/platform/qt/PlatformMouseEventQt.cpp:34:  Alphabetical sorting problem.  [build/include_order] [4]
WebCore/platform/qt/PlatformMouseEventQt.cpp:68:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/platform/qt/PlatformMouseEventQt.cpp:69:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/platform/qt/PlatformMouseEventQt.cpp:70:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/platform/qt/PlatformMouseEventQt.cpp:71:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/platform/qt/PlatformMouseEventQt.cpp:97:  Declaration has space between type name and * in QContextMenuEvent *ce  [whitespace/declaration] [3]
WebCore/platform/qt/PlatformMouseEventQt.cpp:123:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/platform/qt/PlatformMouseEventQt.cpp:124:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/platform/qt/PlatformMouseEventQt.cpp:125:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
WebCore/platform/qt/PlatformMouseEventQt.cpp:126:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 11 in 1 files
Comment 1 Anders Bakken 2010-05-26 14:37:58 PDT
Created attachment 57149 [details]
Patch that fixes the coding style issues
Comment 2 Petri Ojala 2010-05-26 21:46:48 PDT
QtTriaged
Comment 3 David Levin 2010-05-27 11:17:48 PDT
Comment on attachment 57149 [details]
Patch that fixes the coding style issues

>   No new tests. (OOPS!)
Ditto.
Comment 4 Anders Bakken 2010-06-04 18:50:45 PDT
Created attachment 57944 [details]
Patch
Comment 5 Eric Seidel (no email) 2010-06-04 22:04:41 PDT
Comment on attachment 57944 [details]
Patch

Again, very sad about the duplicated code!
Comment 6 WebKit Commit Bot 2010-06-05 02:46:21 PDT
Comment on attachment 57944 [details]
Patch

Rejecting patch 57944 from commit-queue.

Failed to run "[u'/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/svn-apply', u'--reviewer', u'Eric Seidel', u'--force']" exit_code: 1
Parsed 2 diffs from patch file(s).
patching file WebCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file WebCore/platform/qt/PlatformMouseEventQt.cpp
Hunk #1 FAILED at 28.
Hunk #2 FAILED at 64.
Hunk #3 FAILED at 93.
Hunk #4 FAILED at 119.
4 out of 4 hunks FAILED -- saving rejects to file WebCore/platform/qt/PlatformMouseEventQt.cpp.rej

Full output: http://webkit-commit-queue.appspot.com/results/3139047
Comment 7 Ojan Vafai 2010-06-09 12:52:52 PDT
Comment on attachment 57944 [details]
Patch

Could not upload patch 57944 to rietveld. Rietveld is down or there's a bug in the upload bot.

Unexpected failure when processing patch!  Please file a bug against webkit-patch.
Failed to run "['/WebKit/WebKitTools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', 'post-attachment-to-rietveld', '--force-clean', '--non-interactive', '--parent-command=rietveld-upload-queue', 57944]" exit_code: 1
Last 500 characters of output:
d.py", line 143, in _process_patch
    self._main_sequence.run_and_handle_errors(tool, options, state)
  File "/WebKit/WebKitTools/Scripts/webkitpy/tool/commands/stepsequence.py", line 86, in run_and_handle_errors
    command.handle_script_error(tool, state, e)
  File "/WebKit/WebKitTools/Scripts/webkitpy/tool/commands/queues.py", line 340, in handle_script_error
    cls._reject_patch(patch, cls._error_message_for_bug(tool, status_id, script_error))
NameError: global name 'patch' is not defined
Comment 8 Ojan Vafai 2010-06-09 13:01:47 PDT
(In reply to comment #7)
> (From update of attachment 57944 [details])
> Could not upload patch 57944 to rietveld. Rietveld is down or there's a bug in the upload bot.

This patch doesn't apply on trunk anymore. Sorry for the noisy error message. I'll fix it.
Comment 9 Andreas Kling 2010-07-17 22:48:10 PDT
I have no idea what's going on with this bug, but the patch went in:
http://trac.webkit.org/changeset/60743