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

Issue 367343003: Remove user-defined move constructor and assignment operator from WTF::String (Closed)

Created:
6 years, 5 months ago by Mikhail
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, abarth-chromium, Nico, Erik Corry, tkent, eseidel
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Remove user-defined move constructor and assignment operator from WTF::String WTF::String can rely on implicit move constructor and assignment operator as WTF::RefPtr class has them defined now (r177066). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178541

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -9 lines) Patch
M Source/wtf/text/WTFString.h View 1 chunk +0 lines, -9 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
Mikhail
PTAL
6 years, 5 months ago (2014-07-03 13:26:26 UTC) #1
eseidel
jyasskin is your best reviewer for c++ thneeds. But LGTM.
6 years, 5 months ago (2014-07-03 17:37:51 UTC) #2
Mikhail
The CQ bit was checked by mikhail.pozdnyakov@intel.com
6 years, 5 months ago (2014-07-21 07:52:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhail.pozdnyakov@intel.com/367343003/1
6 years, 5 months ago (2014-07-21 07:53:02 UTC) #4
commit-bot: I haz the power
Change committed as 178541
6 years, 5 months ago (2014-07-21 08:30:21 UTC) #5
Inactive
https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h File Source/wtf/text/WTFString.h (left): https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h#oldcode132 Source/wtf/text/WTFString.h:132: String& operator=(String&& other) { m_impl = other.m_impl.release(); return *this; ...
6 years, 5 months ago (2014-07-21 11:15:43 UTC) #6
Inactive
On 2014/07/21 11:15:43, Chris Dumez wrote: > https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h > File Source/wtf/text/WTFString.h (left): > > https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h#oldcode132 ...
6 years, 5 months ago (2014-07-21 12:32:25 UTC) #7
Mikhail
https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h File Source/wtf/text/WTFString.h (left): https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h#oldcode132 Source/wtf/text/WTFString.h:132: String& operator=(String&& other) { m_impl = other.m_impl.release(); return *this; ...
6 years, 5 months ago (2014-07-21 12:35:44 UTC) #8
Inactive
A working solution would have been to bring back the default implementation using "= default;" ...
6 years, 5 months ago (2014-07-21 12:36:25 UTC) #9
Inactive
On 2014/07/21 12:35:44, Mikhail wrote: > https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h > File Source/wtf/text/WTFString.h (left): > > https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h#oldcode132 > ...
6 years, 5 months ago (2014-07-21 12:37:56 UTC) #10
Mikhail
On 2014/07/21 12:37:56, Chris Dumez wrote: > On 2014/07/21 12:35:44, Mikhail wrote: > > https://codereview.chromium.org/367343003/diff/1/Source/wtf/text/WTFString.h ...
6 years, 5 months ago (2014-07-21 12:55:01 UTC) #11
Mikhail
6 years, 5 months ago (2014-07-21 12:56:11 UTC) #12
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/402163002/ by mikhail.pozdnyakov@intel.com.

The reason for reverting is: This can be applied only when user-defined dtor is
removed..

Powered by Google App Engine
This is Rietveld 408576698