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

Issue 1358163002: Add nonstd::unique_ptr move assigment operator. (Closed)

Created:
5 years, 3 months ago by Tom Sepez
Modified:
5 years, 3 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add nonstd::unique_ptr move assigment operator. std::unique_ptr supports move assignment as in: ptr2 = std::move(ptr1); R=jyasskin@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/dd7a7f012424ec8505830710ac0dd0183203c189

Patch Set 1 #

Total comments: 4

Patch Set 2 : reset(that.release()) and same for []s. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -0 lines) Patch
M pdfium.gyp View 1 chunk +1 line, -0 lines 1 comment Download
M third_party/base/nonstd_unique_ptr.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
A third_party/base/nonstd_unique_ptr_unittest.cpp View 1 chunk +87 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Tom Sepez
Jeffrey, for review. Small omission from our stub impl.
5 years, 3 months ago (2015-09-22 18:28:19 UTC) #2
Jeffrey Yasskin
LGTM given the changes below. "ptr1.reset(std::move(ptr2))" doesn't work because reset() takes a T*, not a ...
5 years, 3 months ago (2015-09-22 20:12:55 UTC) #3
Tom Sepez
https://codereview.chromium.org/1358163002/diff/1/third_party/base/nonstd_unique_ptr.h File third_party/base/nonstd_unique_ptr.h (right): https://codereview.chromium.org/1358163002/diff/1/third_party/base/nonstd_unique_ptr.h#newcode181 third_party/base/nonstd_unique_ptr.h:181: if (that.ptr_ != ptr_) { On 2015/09/22 20:12:55, Jeffrey ...
5 years, 3 months ago (2015-09-22 22:05:13 UTC) #4
Tom Sepez
Committed patchset #2 (id:20001) manually as dd7a7f012424ec8505830710ac0dd0183203c189 (presubmit successful).
5 years, 3 months ago (2015-09-22 22:07:03 UTC) #5
Lei Zhang
https://codereview.chromium.org/1358163002/diff/20001/pdfium.gyp File pdfium.gyp (right): https://codereview.chromium.org/1358163002/diff/20001/pdfium.gyp#newcode726 pdfium.gyp:726: 'third_party/base/nonstd_unique_ptr_unittest.cpp', You forgot BUILD.gn, but I got it in ...
5 years, 3 months ago (2015-09-23 04:50:35 UTC) #6
Tom Sepez
5 years, 3 months ago (2015-09-23 19:12:32 UTC) #7
Message was sent while issue was closed.
On 2015/09/23 04:50:35, Lei Zhang wrote:
> https://codereview.chromium.org/1358163002/diff/20001/pdfium.gyp
> File pdfium.gyp (right):
> 
> https://codereview.chromium.org/1358163002/diff/20001/pdfium.gyp#newcode726
> pdfium.gyp:726: 'third_party/base/nonstd_unique_ptr_unittest.cpp',
> You forgot BUILD.gn, but I got it in my CL.

Thanks.

Powered by Google App Engine
This is Rietveld 408576698