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

Issue 10917259: Avoid using NULL comparison to check if element is in the map. (Closed)

Created:
8 years, 3 months ago by Nikolay
Modified:
8 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Use 0, not NULL for member pointer comparision. Some gcc versions print warning otherwise. BUG=None TEST=Compiles and works as expected

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M native_client/src/trusted/plugin/plugin.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nikolay
Some gcc versions (such as 4.4.6 used for ARM target) complains about member pointer comparison ...
8 years, 3 months ago (2012-09-14 12:17:38 UTC) #1
Nikolay
8 years, 3 months ago (2012-09-17 10:36:37 UTC) #2
dmichael (off chromium)
This is counter to the style guide, I think: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#0_and_NULL (Though admittedly it doesn't call ...
8 years, 3 months ago (2012-09-17 15:10:35 UTC) #3
Nikolay
I needed this compiler version, as it's the only crosstools gcc which successfully builds Chrome ...
8 years, 3 months ago (2012-09-18 13:29:15 UTC) #4
dmichael (off chromium)
On 2012/09/18 13:29:15, olonho wrote: > I needed this compiler version, as it's the only ...
8 years, 3 months ago (2012-09-18 15:09:17 UTC) #5
Nikolay
PTAL. BTW, which tree PPAPI changes shall be committed to? I wrote this CL against ...
8 years, 3 months ago (2012-09-19 10:27:52 UTC) #6
dmichael (off chromium)
On 2012/09/19 10:27:52, olonho wrote: > PTAL. BTW, which tree PPAPI changes shall be committed ...
8 years, 3 months ago (2012-09-19 14:57:07 UTC) #7
Nikolay
8 years, 3 months ago (2012-09-20 09:20:33 UTC) #8
See https://codereview.chromium.org/10959008/ for change against Chromium tree.

Powered by Google App Engine
This is Rietveld 408576698