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

Issue 2616683002: Add missing operator<() to CFX_RetainPtr (Closed)

Created:
3 years, 11 months ago by Tom Sepez
Modified:
3 years, 11 months ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Add missing operator<() to CFX_RetainPtr. Use std::less<>() rather than a direct ptr1 < ptr2 comparison to be strictly correct in face of unspecified behaviour when ptr1 and ptr2 don't point within the same "object" (e.g. segment of memory on a brain-dead segmented architecture). This will allow their use as keys in maps. Review-Url: https://codereview.chromium.org/2616683002 Committed: https://pdfium.googlesource.com/pdfium/+/dc39e377e1a3923e63569020beb29f9662c1a3ee

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M core/fxcrt/cfx_retain_ptr.h View 2 chunks +6 lines, -1 line 0 comments Download
M core/fxcrt/cfx_retain_ptr_unittest.cpp View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (10 generated)
Tom Sepez
Dan, for review.
3 years, 11 months ago (2017-01-04 19:11:05 UTC) #6
dsinclair
lgtm
3 years, 11 months ago (2017-01-04 19:31:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616683002/1
3 years, 11 months ago (2017-01-04 19:31:33 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 19:31:51 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/dc39e377e1a3923e63569020beb29f9662c1...

Powered by Google App Engine
This is Rietveld 408576698